DirectoryServicesPermissionEntryCollection.Item[Int32] 属性

定义

获取或设置此集合中的 DirectoryServicesPermissionEntry 对象。Gets or sets a DirectoryServicesPermissionEntry object in this collection.

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

参数

index
Int32

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

属性值

DirectoryServicesPermissionEntry

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

注解

在 C# 中,此属性是 DirectoryServicesPermissionEntryCollection 类的索引器。In C#, this property is the indexer for the DirectoryServicesPermissionEntryCollection class.

在 JScript 中,您可以使用某个类型定义的默认索引属性,但不能显式定义自己的属性。In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. 但是,在类上指定 expando 特性将自动提供一个对象类型和索引类型为的默认索引属性 StringHowever, specifying the expando attribute on a class automatically provides a default indexed property with a type of Object and with an index type of String.

适用于

另请参阅