MultiFileConnectionManagerUIArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 MultiFileConnectionManagerUIArgs 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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 *.XML。
每個過濾選項的濾波器字串包含濾波器的描述,接著是垂直條(|)和濾波器圖案。 不同過濾選項的字串以垂直條分隔。
以下是一個濾波器字串的範例:
「文字檔(*.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 *.XML。
每個過濾選項的濾波器字串包含濾波器的描述,接著是垂直條(|)和濾波器圖案。 不同過濾選項的字串由垂直條分隔。
以下是一個濾波器字串的範例:
「文字檔(*.txt)|*.txt|所有檔案 (*.*)|*.*”
你可以用分號分開檔案類型,為濾波器添加多種過濾模式。 例如:
「影像檔案(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|所有檔案 (*.*)|*.*”
此 fileFilter 字串的格式與語法與 Filter 類別上的 OpenFileDialog 性質相同。 欲了解更多資訊,請參閱 .NET Framework 類別函式庫中的「OpenFileDialog 類別」。
對於 supportedUsageTypes,空集合表示所有使用類型皆被支援。
目前的使用類型有建立檔案、現有檔案、建立資料夾和現有資料夾。 該集合只包含對該連線有效的類型。 例如,在 FTP 任務中,如果操作是用 FTP 傳送檔案,那麼本地路徑只能是現有檔案,因為你只能傳輸現有檔案。