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

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