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 Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides Add, Remove, and Replace lists that can be used to update lists. This class is introduced in Windows PowerShell 2.0.

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

System.Object
  System.Management.Automation.PSListModifier
    System.Management.Automation.PSListModifier<T>

public class PSListModifier

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.

NameDescription
System_CAPS_pubpropertyAdd

Gets the Add list that is used when the ApplyTo method is called. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyRemove

Gets the Remove list that is used when the ApplyTo method is called. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyReplace

Gets the Replace list that is used to replace all the items of an existing list. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodApplyTo(IList)

Updates the specified list collection by using the current Add, Remove, and Replace lists. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodApplyTo(Object)

Updates the specified collection object by using the current Add, Remove, and Replace lists. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

For a generic version of this class, see the PSListModifier<T> class.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: