Edit

DirectoryControlCollection Class

Definition

The DirectoryControlCollection class manages a collection of DirectoryControl objects.

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

Constructors

Name Description
DirectoryControlCollection()

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

Properties

Name Description
Item[Int32]

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

Methods

Name Description
Add(DirectoryControl)

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

AddRange(DirectoryControl[])

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

AddRange(DirectoryControlCollection)

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

Contains(DirectoryControl)

The Contains(DirectoryControl) method determines whether this DirectoryControlCollection object contains a specified DirectoryControl object.

CopyTo(DirectoryControl[], Int32)

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

IndexOf(DirectoryControl)

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

Insert(Int32, DirectoryControl)

The Insert(Int32, DirectoryControl) method inserts the specified DirectoryControl object into the DirectoryControlCollection at the specified index.

OnValidate(Object)

The OnValidate(Object) method verifies that value is a DirectoryControl object.

Remove(DirectoryControl)

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

Applies to