Udostępnij za pośrednictwem


PSListModifier<T> Constructors

Definition

Overloads

PSListModifier<T>()

Create a new PSListModifier with empty lists for Add/Remove.

PSListModifier<T>(Hashtable)

Create a new PSListModifier with the specified add and remove lists (in the hash.)

PSListModifier<T>(Object)

Create a new PSListModifier to replace a given list with replaceItems.

PSListModifier<T>(Collection<Object>, Collection<Object>)

Create a new PSListModifier with the specified add and remove lists.

PSListModifier<T>()

Create a new PSListModifier with empty lists for Add/Remove.

public:
 PSListModifier();
public:
 PSListModifier();
 PSListModifier();
public PSListModifier ();
Public Sub New ()

Applies to

PSListModifier<T>(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<'T> : System.Collections.Hashtable -> System.Management.Automation.PSListModifier<'T>
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<T>(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<'T> : obj -> System.Management.Automation.PSListModifier<'T>
Public Sub New (replacementItems As Object)

Parameters

replacementItems
Object

The items to replace an existing list with.

Applies to

PSListModifier<T>(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<'T> : System.Collections.ObjectModel.Collection<obj> * System.Collections.ObjectModel.Collection<obj> -> System.Management.Automation.PSListModifier<'T>
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.

Applies to