語言

FileConnectionManagerUIArgs 建構函式

定義

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

多載

名稱 Description
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 .XML。

每個過濾選項的濾波器字串包含濾波器的描述,接著是垂直條(|)和濾波器圖案。 過濾選項中每個部分的字串都以垂直條分隔。

以下是一個濾波器字串的範例:

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

你可以用分號分開檔案類型,為單一篩選選項新增多種過濾模式。 例如:

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

此 fileFilter 字串的格式與語法與 OpenFileDialog 上的 Filter 屬性相同。 欲了解更多 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 *.XML。

每個過濾選項的濾波器字串包含濾波器的描述,接著是垂直條(|)和濾波器圖案。 若有多個篩選選項,後續選項的字串會被額外的垂直條分隔。

以下是一個過濾字串的範例:「文字檔 (*.txt)|*.txt|所有檔案 (*.*)|*.*”

你可以用分號分開檔案類型,為濾波器添加多種過濾模式。 例如:「影像檔案(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|所有檔案 (*.*)|*.*”

此 fileFilter 字串的格式與語法與 OpenFileDialog 上的 Filter 屬性相同。 欲了解更多 OpenFileDialog 類別的資訊,請參閱 .NET Framework 類別函式庫。

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

目前的使用類型有建立檔案、現有檔案、建立資料夾和現有資料夾。 該集合只包含對該連線有效的類型。 例如,在 FTP 任務中,如果操作是用 FTP 傳送檔案,那麼本地路徑只能是現有檔案,因為你只能傳輸現有檔案。

適用於