MultiFileConnectionManagerUIArgs 建構函式

定義

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

多載

MultiFileConnectionManagerUIArgs()

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

MultiFileConnectionManagerUIArgs(ICollection)

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

MultiFileConnectionManagerUIArgs(String)

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

MultiFileConnectionManagerUIArgs(String, ICollection)

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

MultiFileConnectionManagerUIArgs()

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

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

適用於

MultiFileConnectionManagerUIArgs(ICollection)

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

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

參數

supportedUsageTypes
ICollection

可選擇的 DTSFileConnectionUsageType 列舉集合。

備註

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

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

適用於

MultiFileConnectionManagerUIArgs(String)

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

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

參數

fileFilter
String

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

備註

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

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

以下是篩選字串的範例:

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

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

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

這個字串的格式和語法與在 fileFilter Filter 類別上找到的屬性完全相同 OpenFileDialog 。 如需有關「OpenFileDialog 類別」的詳細資訊,請參閱 .NET Framework 類別庫。

適用於

MultiFileConnectionManagerUIArgs(String, ICollection)

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

public:
 MultiFileConnectionManagerUIArgs(System::String ^ fileFilter, System::Collections::ICollection ^ supportedUsageTypes);
public MultiFileConnectionManagerUIArgs (string fileFilter, System.Collections.ICollection supportedUsageTypes);
new Microsoft.SqlServer.Dts.Runtime.Design.MultiFileConnectionManagerUIArgs : string * System.Collections.ICollection -> Microsoft.SqlServer.Dts.Runtime.Design.MultiFileConnectionManagerUIArgs
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 Filter 類別上找到的屬性完全相同 OpenFileDialog 。 如需詳細資訊,請參閱 .NET Framework 類別庫中的「OpenFileDialog 類別」。

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

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

適用於