Прочитај на енглеском

Делите путем


PSMemberInfoCollection<T> Class

Definition

Serves as the collection of members in an PSObject or MemberSet.

C++
generic <typename T>
 where T : PSMemberInfopublic ref class PSMemberInfoCollection abstract : System::Collections::Generic::IEnumerable<T>

Type Parameters

T
Inheritance
PSMemberInfoCollection<T>
Implements

Constructors

PSMemberInfoCollection<T>()

Initializes a new instance of an PSMemberInfoCollection derived class.

Properties

Item[String]

Gets the member in this collection matching name. If the member does not exist, null is returned.

Methods

Add(T, Boolean)

Adds a member to this collection.

Add(T)

Adds a member to this collection.

GetEnumerator()

Gets the specific enumerator for this collection.

Match(String, PSMemberTypes)

Returns all members in the collection matching name and types.

Match(String)

Returns all members in the collection matching name.

Remove(String)

Removes a member from this collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets the general enumerator for this collection.

Applies to

Производ Верзије
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0