GPPermissionCollection.RemoveAt Method (Int32)

 

Removes the GPPermission object at the specified position from the GPPermissionCollection instance.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public void RemoveAt(
    int index
)
public:
virtual void RemoveAt(
    int index
) sealed
abstract RemoveAt : 
        index:int -> unit
override RemoveAt : 
        index:int -> unit
Public Sub RemoveAt (
    index As Integer
)

Parameters

  • index
    Type: System.Int32

    The position in the collection from which to remove the permission. The index is zero-based.

Implements

IList<T>.RemoveAt(Int32)

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is not a valid position in the array.

See Also

GPPermissionCollection Class
Microsoft.GroupPolicy Namespace

Return to top