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