Partilhar via


PSMemberInfoCollection<T>.Match Method

Definition

Overloads

Match(String)

Returns all members in the collection matching name.

Match(String, PSMemberTypes)

Returns all members in the collection matching name and types.

Match(String)

Returns all members in the collection matching name.

public:
 abstract System::Management::Automation::ReadOnlyPSMemberInfoCollection<T> ^ Match(System::String ^ name);
public abstract System.Management.Automation.ReadOnlyPSMemberInfoCollection<T> Match (string name);
abstract member Match : string -> System.Management.Automation.ReadOnlyPSMemberInfoCollection<'T (requires 'T :> System.Management.Automation.PSMemberInfo)>
Public MustOverride Function Match (name As String) As ReadOnlyPSMemberInfoCollection(Of T)

Parameters

name
String

Name of the members to be return. May contain wildcard characters.

Returns

All members in the collection matching name.

Exceptions

For invalid arguments.

Applies to

Match(String, PSMemberTypes)

Returns all members in the collection matching name and types.

public:
 abstract System::Management::Automation::ReadOnlyPSMemberInfoCollection<T> ^ Match(System::String ^ name, System::Management::Automation::PSMemberTypes memberTypes);
public abstract System.Management.Automation.ReadOnlyPSMemberInfoCollection<T> Match (string name, System.Management.Automation.PSMemberTypes memberTypes);
abstract member Match : string * System.Management.Automation.PSMemberTypes -> System.Management.Automation.ReadOnlyPSMemberInfoCollection<'T (requires 'T :> System.Management.Automation.PSMemberInfo)>
Public MustOverride Function Match (name As String, memberTypes As PSMemberTypes) As ReadOnlyPSMemberInfoCollection(Of T)

Parameters

name
String

Name of the members to be return. May contain wildcard characters.

memberTypes
PSMemberTypes

Type of the members to be searched.

Returns

All members in the collection matching name and types.

Exceptions

For invalid arguments.

Applies to