Share via


PSListModifier<T> Class

Definition

A generic version of PSListModifier that exists for the sole purpose of making cmdlets that accept a PSListModifier more usable. Users that look at the syntax of the command will see something like PSListModifier[Mailbox] and know they need to pass in Mailboxes.

generic <typename T>
public ref class PSListModifier : System::Management::Automation::PSListModifier
public class PSListModifier<T> : System.Management.Automation.PSListModifier
type PSListModifier<'T> = class
    inherit PSListModifier
Public Class PSListModifier(Of T)
Inherits PSListModifier

Type Parameters

T

The list element type

Inheritance
PSListModifier<T>

Constructors

PSListModifier<T>()

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

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

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

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.

Properties

Add

The list of items to add when ApplyTo is called.

(Inherited from PSListModifier)
Remove

The list of items to remove when AppyTo is called.

(Inherited from PSListModifier)
Replace

The list of items to replace an existing list with.

(Inherited from PSListModifier)

Methods

ApplyTo(IList)

Update the given collection with the items in Add and Remove.

(Inherited from PSListModifier)
ApplyTo(Object)

Update the given collection with the items in Add and Remove.

(Inherited from PSListModifier)

Applies to