Dela via


WildcardPattern Constructors

Definition

Overloads

WildcardPattern(String)

Initializes and instance of the WildcardPattern class for the specified wildcard pattern.

WildcardPattern(String, WildcardOptions)

Initializes an instance of the WildcardPattern class for the specified wildcard pattern expression, with options that modify the pattern.

WildcardPattern(String)

Initializes and instance of the WildcardPattern class for the specified wildcard pattern.

public:
 WildcardPattern(System::String ^ pattern);
public:
 WildcardPattern(Platform::String ^ pattern);
 WildcardPattern(std::wstring const & pattern);
public WildcardPattern (string pattern);
new System.Management.Automation.WildcardPattern : string -> System.Management.Automation.WildcardPattern
Public Sub New (pattern As String)

Parameters

pattern
String

The wildcard pattern to match.

Remarks

if wildCardType == None, the pattern does not have wild cards

Applies to

WildcardPattern(String, WildcardOptions)

Initializes an instance of the WildcardPattern class for the specified wildcard pattern expression, with options that modify the pattern.

public:
 WildcardPattern(System::String ^ pattern, System::Management::Automation::WildcardOptions options);
public WildcardPattern (string pattern, System.Management.Automation.WildcardOptions options);
new System.Management.Automation.WildcardPattern : string * System.Management.Automation.WildcardOptions -> System.Management.Automation.WildcardPattern
Public Sub New (pattern As String, options As WildcardOptions)

Parameters

pattern
String

The wildcard pattern to match.

options
WildcardOptions

Wildcard options.

Remarks

if wildCardType == None, the pattern does not have wild cards

Applies to