PSListModifier Constructors
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.
Overloads
PSListModifier() |
Create a new PSListModifier with empty lists for Add/Remove. |
PSListModifier(Hashtable) |
Create a new PSListModifier with the specified add and remove lists (in the hash.) |
PSListModifier(Object) |
Create a new PSListModifier to replace a given list with replaceItems. |
PSListModifier(Collection<Object>, Collection<Object>) |
Create a new PSListModifier with the specified add and remove lists. |
PSListModifier()
Create a new PSListModifier with empty lists for Add/Remove.
public:
PSListModifier();
public:
PSListModifier();
PSListModifier();
public PSListModifier ();
Public Sub New ()
Applies to
PSListModifier(Hashtable)
Create a new PSListModifier with the specified add and remove lists (in the hash.)
public:
PSListModifier(System::Collections::Hashtable ^ hash);
public PSListModifier (System.Collections.Hashtable hash);
new System.Management.Automation.PSListModifier : System.Collections.Hashtable -> System.Management.Automation.PSListModifier
Public Sub New (hash As Hashtable)
Parameters
- hash
- Hashtable
A hashtable, where the value for key Add is the list to add and the value for Remove is the list to remove.
Applies to
PSListModifier(Object)
Create a new PSListModifier to replace a given list with replaceItems.
public:
PSListModifier(System::Object ^ replacementItems);
public:
PSListModifier(Platform::Object ^ replacementItems);
PSListModifier(winrt::Windows::Foundation::IInspectable const & replacementItems);
public PSListModifier (object replacementItems);
new System.Management.Automation.PSListModifier : obj -> System.Management.Automation.PSListModifier
Public Sub New (replacementItems As Object)
Parameters
- replacementItems
- Object
The item(s) to replace an existing list with.
Applies to
PSListModifier(Collection<Object>, Collection<Object>)
Create a new PSListModifier with the specified add and remove lists.
public:
PSListModifier(System::Collections::ObjectModel::Collection<System::Object ^> ^ removeItems, System::Collections::ObjectModel::Collection<System::Object ^> ^ addItems);
public PSListModifier (System.Collections.ObjectModel.Collection<object> removeItems, System.Collections.ObjectModel.Collection<object> addItems);
new System.Management.Automation.PSListModifier : System.Collections.ObjectModel.Collection<obj> * System.Collections.ObjectModel.Collection<obj> -> System.Management.Automation.PSListModifier
Public Sub New (removeItems As Collection(Of Object), addItems As Collection(Of Object))
Parameters
- removeItems
- Collection<Object>
The items to remove.
- addItems
- Collection<Object>
The items to add.