PSListModifier<T> Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the PSListModifier<T> class. The variants of this constructor can create an empty object or an object filled with Add, Remove, and Replace lists. This constructor is introduced by Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodPSListModifier<T>()

Initializes a new instance of the PSListModifier<T> class that contains empty Add, Remove, and Replace lists. This constructor is introduced by Windows PowerShell 2.0.

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

Initializes a new instance of the PSListModifier<T> class that contains Add and Remove lists that are defined by using individual collections. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodPSListModifier<T>(Hashtable)

Initializes a new instance of the PSListModifier<T> class that contains Add, Remove, and Replace lists that are defined by a hash table. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodPSListModifier<T>(Object)

Initializes a new instance of the PSListModifier<T> class that contains a Replace list based on an Object. This constructor is introduced by Windows PowerShell 2.0.

Return to top

Community Additions

ADD
Show: