ActiveDirectorySiteCollection.Item[Int32] 属性

定义

获取或设置此集合中的 ActiveDirectorySite 对象。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

参数

index
Int32

要获取或设置的 ActiveDirectorySite 对象的从零开始的索引。The zero-based index of the ActiveDirectorySite object to get or set.

属性值

ActiveDirectorySite

位于指定索引位置的 ActiveDirectorySite 对象。The ActiveDirectorySite object that exists at the specified index.

例外

此集合中已存在该成员(仅适用于设置)。The member already exists in this collection (applies to set only).

指定项为 null(仅适用于设置)。The item specified is null (applies to set only).

指定的 index 超出了此集合的范围。The index specified is out of range of this collection.

尚未将 ActiveDirectorySite 对象保存到 Active Directory 域服务存储区中(仅适用于设置)。The ActiveDirectorySite object has not yet been saved in the Active Directory Domain Services store (applies to set only).

适用于

另请参阅