Édition

DirectoryAttributeCollection Class

Definition

The DirectoryAttributeCollection class contains a collection of DirectoryAttribute objects.

public ref class DirectoryAttributeCollection : System::Collections::CollectionBase
public class DirectoryAttributeCollection : System.Collections.CollectionBase
type DirectoryAttributeCollection = class
    inherit CollectionBase
Public Class DirectoryAttributeCollection
Inherits CollectionBase
Inheritance
DirectoryAttributeCollection

Constructors

Name Description
DirectoryAttributeCollection()

The DirectoryAttributeCollection() constructor creates an instance of the DirectoryAttributeCollection class.

Properties

Name Description
Item[Int32]

The Item[Int32] property contains the DirectoryAttribute object at the specified index.

Methods

Name Description
Add(DirectoryAttribute)

The Add(DirectoryAttribute) method adds a DirectoryAttribute object to the collection.

AddRange(DirectoryAttribute[])

The AddRange(DirectoryAttribute[]) method adds an array of DirectoryAttribute objects to the collection.

AddRange(DirectoryAttributeCollection)

The AddRange(DirectoryAttributeCollection) method adds a DirectoryAttributeCollection object to the current collection.

Contains(DirectoryAttribute)

The Contains(DirectoryAttribute) method determines whether this DirectoryAttributeCollection object contains a specified DirectoryAttribute object.

CopyTo(DirectoryAttribute[], Int32)

The CopyTo(DirectoryAttribute[], Int32) method copies the entire collection to a one-dimensional array, starting at the specified index of the target array.

IndexOf(DirectoryAttribute)

The IndexOf(DirectoryAttribute) method returns the zero-based index of the first occurrence of the specified DirectoryAttribute object in the DirectoryAttributeCollection.

Insert(Int32, DirectoryAttribute)

The Insert(Int32, DirectoryAttribute) method inserts the specified DirectoryAttribute object into the DirectoryAttributeCollection at the specified index.

OnValidate(Object)

The OnValidate(Object) method verifies that value is a DirectoryAttribute object or specifies an add operation.

Remove(DirectoryAttribute)

The Remove(DirectoryAttribute) method removes the first occurrence of the specified DirectoryAttribute object from the collection.

Applies to