Bewerken

Delen via


ActiveDirectorySiteCollection.Item[Int32] Property

Definition

Gets or sets an ActiveDirectorySite object in this collection.

public:
 property System::DirectoryServices::ActiveDirectory::ActiveDirectorySite ^ default[int] { System::DirectoryServices::ActiveDirectory::ActiveDirectorySite ^ get(int index); void set(int index, System::DirectoryServices::ActiveDirectory::ActiveDirectorySite ^ value); };
public System.DirectoryServices.ActiveDirectory.ActiveDirectorySite this[int index] { get; set; }
member this.Item(int) : System.DirectoryServices.ActiveDirectory.ActiveDirectorySite with get, set
Default Public Property Item(index As Integer) As ActiveDirectorySite

Parameters

index
Int32

The zero-based index of the ActiveDirectorySite object to get or set.

Property Value

The ActiveDirectorySite object that exists at the specified index.

Exceptions

The member already exists in this collection (applies to set only).

The item specified is null (applies to set only).

The index specified is out of range of this collection.

The ActiveDirectorySite object has not yet been saved in the Active Directory Domain Services store (applies to set only).

Applies to

See also