Share via


DialogFilter Constructors

Definition

Overloads

DialogFilter(String, IReadOnlyCollection<String>)

Initializes a new instance of the DialogFilter class.

DialogFilter(String, String[])

Initializes a new instance of the DialogFilter class.

DialogFilter(String, IReadOnlyCollection<String>)

Initializes a new instance of the DialogFilter class.

public DialogFilter (string displayValue, System.Collections.Generic.IReadOnlyCollection<string> filters);
new Microsoft.VisualStudio.Shell.FileDialog.DialogFilter : string * System.Collections.Generic.IReadOnlyCollection<string> -> Microsoft.VisualStudio.Shell.FileDialog.DialogFilter
Public Sub New (displayValue As String, filters As IReadOnlyCollection(Of String))

Parameters

displayValue
String

The display value of the filter (e.g., "C++ files").

filters
IReadOnlyCollection<String>

A collection of file extensions associated with the filter (e.g., [ ".cpp", ".cxx", "*.h" ]).

Applies to

DialogFilter(String, String[])

Initializes a new instance of the DialogFilter class.

public DialogFilter (string displayValue, params string[] filters);
new Microsoft.VisualStudio.Shell.FileDialog.DialogFilter : string * string[] -> Microsoft.VisualStudio.Shell.FileDialog.DialogFilter
Public Sub New (displayValue As String, ParamArray filters As String())

Parameters

displayValue
String

The display value of the filter (e.g., "C++ files").

filters
String[]

An array of file filters associated with the filter (e.g., [ ".cpp", ".cxx", "*.h" ]).

Applies to