PSListModifier Constructor

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.

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.

NameDescription
PSListModifier ()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.
PSListModifier (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.
PSListModifier (Collection, Collection)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.
PSListModifier (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.


Show:
© 2015 Microsoft