Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSListModifier Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the PSListModifier class. The variants of this constructor can create an empty object or an object that contains 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()

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

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

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

System_CAPS_pubmethodPSListModifier(Hashtable)

Initializes a new instance of the PSListModifier 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(Object)

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

This .NET Framework type is returned by the Update-List cmdlet and is used internally by the cmdlet to update a list. Other cmdlets that modify lists could use this class to provide Add, Remove, and Replace lists to modify their own lists.

Return to top

Community Additions

Show: