Partager via


MultiFileConnectionManagerUIArgs Constructor (String)

Initializes a new instance of the MultiFileConnectionManagerUIArgs class using a String to specify what file types are valid for this connection.

Espace de noms: Microsoft.SqlServer.Dts.Runtime.Design
Assembly: Microsoft.SqlServer.Dts.Design (in microsoft.sqlserver.dts.design.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    fileFilter As String _
)
public MultiFileConnectionManagerUIArgs (
    string fileFilter
)
public:
MultiFileConnectionManagerUIArgs (
    String^ fileFilter
)
public MultiFileConnectionManagerUIArgs (
    String fileFilter
)
public function MultiFileConnectionManagerUIArgs (
    fileFilter : String
)

Paramètres

  • fileFilter
    A file filter restricts the types of files offered in a user interface, such as *.txt.

Notes

The default filter, if not specified, is to show all files. To limit the files shown, the fileFilter string can specify only those types that are valid for the connection. For example, in an XML task, you may only want the user to select XML files, so the fileFilter would be *.XML.

For each filtering option, the filter string contains a description of the filter, followed by the vertical bar (|) and the filter pattern. The strings for different filtering options are separated by a vertical bar.

The following is an example of a filter string:

"Text files (*.txt)|*.txt|All files (*.*)|*.*"

You can add several filter patterns to a filter by separating the file types with semicolons. For example:

"Image Files(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.*"

The format and syntax of this fileFilter string is identical to the Filter property found on the OpenFileDialog class. For more information on "OpenFileDialog Class", see the .NET Framework Class Library.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

MultiFileConnectionManagerUIArgs Class
MultiFileConnectionManagerUIArgs Members
Microsoft.SqlServer.Dts.Runtime.Design Namespace