FileConnectionManagerUIArgs 建構函式

定義

FileConnectionManagerUIArgs 類別的新執行個體初始化。

多載

FileConnectionManagerUIArgs()

FileConnectionManagerUIArgs 類別的新執行個體初始化。

FileConnectionManagerUIArgs(ICollection)

使用此連接專屬的使用類型集合,初始化 FileConnectionManagerUIArgs 類別的新執行個體。

FileConnectionManagerUIArgs(String)

FileConnectionManagerUIArgs使用字串來指定對此連接有效的檔案類型,初始化類別的新實例。

FileConnectionManagerUIArgs(String, ICollection)

初始化 FileConnectionManagerUIArgs 類別的新執行個體,以同時初始化檔案類型篩選和使用類型。

FileConnectionManagerUIArgs()

FileConnectionManagerUIArgs 類別的新執行個體初始化。

public:
 FileConnectionManagerUIArgs();
public FileConnectionManagerUIArgs ();
Public Sub New ()

適用於

FileConnectionManagerUIArgs(ICollection)

使用此連接專屬的使用類型集合,初始化 FileConnectionManagerUIArgs 類別的新執行個體。

public:
 FileConnectionManagerUIArgs(System::Collections::ICollection ^ supportedUsageTypes);
public FileConnectionManagerUIArgs (System.Collections.ICollection supportedUsageTypes);
new Microsoft.SqlServer.Dts.Runtime.Design.FileConnectionManagerUIArgs : System.Collections.ICollection -> Microsoft.SqlServer.Dts.Runtime.Design.FileConnectionManagerUIArgs
Public Sub New (supportedUsageTypes As ICollection)

參數

supportedUsageTypes
ICollection

可選擇的 DTSFileConnectionUsageType 列舉集合。

備註

空集合表示支援所有使用類型。

使用類型目前為 [建立檔案]、[現有檔案]、[建立資料夾] 和 [現有資料夾]。 集合只包含對連接有效的類型。 例如,在 FTP 工作中,如果作業是使用 FTP 傳送檔案,則本機路徑只能是現有的檔案,因為您只能傳輸現有的檔案。

適用於

FileConnectionManagerUIArgs(String)

FileConnectionManagerUIArgs使用字串來指定對此連接有效的檔案類型,初始化類別的新實例。

public:
 FileConnectionManagerUIArgs(System::String ^ fileFilter);
public FileConnectionManagerUIArgs (string fileFilter);
new Microsoft.SqlServer.Dts.Runtime.Design.FileConnectionManagerUIArgs : string -> Microsoft.SqlServer.Dts.Runtime.Design.FileConnectionManagerUIArgs
Public Sub New (fileFilter As String)

參數

fileFilter
String

檔案篩選會限制使用者介面中所提供的檔案類型,例如 *.txt。

備註

預設為顯示所有檔案。 若要篩選向使用者顯示的檔案,請輸入 fileFilter 字串來指定對連接有效的類型。 例如,在 XML 工作中,您可能會想要讓使用者只從 XML 檔案中選取,因此會 fileFilter 是 *。Stl.

針對每個篩選選項,篩選字串會包含篩選準則的描述,後面接著分隔號(|)和篩選模式。 篩選選項每個部分的字串會以分隔號分隔。

以下是篩選字串的範例:

「文字檔(* .txt) |* .txt|所有檔案( * . * )|* 。 * 」

您可以使用分號分隔檔案類型,將數個篩選模式新增至單一篩選器選項。 例如:

「影像檔案(*。BMP; * 。JPG; * 。GIF) |* 。BMP; * 。JPG; * 。GIF|所有檔案( * . * )|* 。 * 」

這個字串的格式和語法與 fileFilter OpenFileDialog 上找到的篩選屬性相同。 如需 OpenFileDialog 類別的詳細資訊,請參閱 .NET Framework 類別庫。

適用於

FileConnectionManagerUIArgs(String, ICollection)

初始化 FileConnectionManagerUIArgs 類別的新執行個體,以同時初始化檔案類型篩選和使用類型。

public:
 FileConnectionManagerUIArgs(System::String ^ fileFilter, System::Collections::ICollection ^ supportedUsageTypes);
public FileConnectionManagerUIArgs (string fileFilter, System.Collections.ICollection supportedUsageTypes);
new Microsoft.SqlServer.Dts.Runtime.Design.FileConnectionManagerUIArgs : string * System.Collections.ICollection -> Microsoft.SqlServer.Dts.Runtime.Design.FileConnectionManagerUIArgs
Public Sub New (fileFilter As String, supportedUsageTypes As ICollection)

參數

fileFilter
String

檔案篩選會限制使用者介面中所提供的檔案類型,例如 *.txt。

supportedUsageTypes
ICollection

可選擇的 DTSFileConnectionUsageType 列舉集合。

備註

針對 fileFilter ,預設為顯示所有檔案。 若要篩選向使用者顯示的檔案,請輸入 fileFilter 字串來指定對連接有效的類型。 例如,在 XML 工作中,您可能會想要讓使用者只選取 XML 檔案,所以會 fileFilter 是 *。Stl.

針對每個篩選選項,篩選字串會包含篩選準則的描述,後面接著分隔號(|)和篩選模式。 如果有多個篩選選項,後續選項的字串會以額外的分隔號分隔。

以下是篩選字串的範例:「文字檔(* .txt) |* .txt|所有檔案( * . * )|* 。 * 」

您可以使用分號分隔檔案類型,以將數個篩選模式新增至篩選。 例如:「影像檔案(*。BMP; * 。JPG; * 。GIF) |* 。BMP; * 。JPG; * 。GIF|所有檔案( * . * )|* 。 * 」

這個字串的格式和語法與 fileFilter OpenFileDialog 上找到的篩選屬性相同。 如需 OpenFileDialog 類別的詳細資訊,請參閱 .NET Framework 類別庫。

針對 supportedUsageTypes ,空集合表示支援所有使用類型。

使用類型目前為 [建立檔案]、[現有檔案]、[建立資料夾] 和 [現有資料夾]。 集合只包含對連接有效的類型。 例如,在 FTP 工作中,如果作業是使用 FTP 傳送檔案,則本機路徑只能是現有的檔案,因為您只能傳輸現有的檔案。

適用於