Udostępnij za pośrednictwem


ReadOnlyPSMemberInfoCollection<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:
 System::Management::Automation::ReadOnlyPSMemberInfoCollection<T> ^ Match(System::String ^ name);
public System.Management.Automation.ReadOnlyPSMemberInfoCollection<T> Match (string name);
member this.Match : string -> System.Management.Automation.ReadOnlyPSMemberInfoCollection<'T (requires 'T :> System.Management.Automation.PSMemberInfo)>
Public 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:
 System::Management::Automation::ReadOnlyPSMemberInfoCollection<T> ^ Match(System::String ^ name, System::Management::Automation::PSMemberTypes memberTypes);
public System.Management.Automation.ReadOnlyPSMemberInfoCollection<T> Match (string name, System.Management.Automation.PSMemberTypes memberTypes);
member this.Match : string * System.Management.Automation.PSMemberTypes -> System.Management.Automation.ReadOnlyPSMemberInfoCollection<'T (requires 'T :> System.Management.Automation.PSMemberInfo)>
Public 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