Partager via


PSMemberSet Constructors

Definition

Overloads

PSMemberSet(String)

Initializes a new instance of PSMemberSet with no initial members.

PSMemberSet(String, IEnumerable<PSMemberInfo>)

Initializes a new instance of PSMemberSet with all the initial members in members

PSMemberSet(String)

Initializes a new instance of PSMemberSet with no initial members.

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

Parameters

name
String

Name for the member set.

Exceptions

For invalid arguments.

Applies to

PSMemberSet(String, IEnumerable<PSMemberInfo>)

Initializes a new instance of PSMemberSet with all the initial members in members

public:
 PSMemberSet(System::String ^ name, System::Collections::Generic::IEnumerable<System::Management::Automation::PSMemberInfo ^> ^ members);
public PSMemberSet (string name, System.Collections.Generic.IEnumerable<System.Management.Automation.PSMemberInfo> members);
new System.Management.Automation.PSMemberSet : string * seq<System.Management.Automation.PSMemberInfo> -> System.Management.Automation.PSMemberSet
Public Sub New (name As String, members As IEnumerable(Of PSMemberInfo))

Parameters

name
String

Name for the member set.

members
IEnumerable<PSMemberInfo>

Members in the member set.

Exceptions

For invalid arguments.

Applies to