PSPropertySet(String, IEnumerable<String>) Constructor

Definition

Initializes a new instance of PSPropertySet with a name and list of property names

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

Parameters

name
String

name of the set

referencedPropertyNames
IEnumerable<String>

name of the properties in the set

Exceptions

for invalid arguments

Applies to