PSPropertySet(String, IEnumerable<String>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.