CommonFileDialogFilter Constructor (String, String)

Vista Bridge Library

[This is preliminary documentation and is subject to change.]

Creates a new instance of this class with the specified display name and file extension list.

Namespace:  Microsoft.SDK.Samples.VistaBridge.Library
Assembly:  VistaBridgeLibrary (in VistaBridgeLibrary.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public CommonFileDialogFilter(
	string rawDisplayName,
	string extensionList
)
Visual Basic (Declaration)
Public Sub New ( _
	rawDisplayName As String, _
	extensionList As String _
)
Visual C++
public:
CommonFileDialogFilter(
	String^ rawDisplayName, 
	String^ extensionList
)

Parameters

rawDisplayName
Type: System..::.String
The name for this filter.
extensionList
Type: System..::.String
The list of extensions in this filter. See remarks.

Remarks

The extensionList can use a semicolon(";") or comma (",") to separate extensions. Extensions can be prefaced with a period (".") or with the file wild card specifier "*.".

Permissions

PermissionDescription
System..::.ArgumentNullException The extensionList cannot be null or a zero-length string.

See Also