Gets the property at the given index.
[C#] In C#, this member is the indexer for the DirectoryEntryPropertyCollection class.
[Visual Basic] Overloads Public Default ReadOnly Property Item( _ ByVal i As Integer _ ) As DirectoryEntryProperty [C#] public DirectoryEntryProperty this[ int i ] {get;} [C++] public: __property DirectoryEntryProperty* get_Item( int i ); [JScript] returnValue = DirectoryEntryPropertyCollectionObject.Item(i); -or- returnValue = DirectoryEntryPropertyCollectionObject(i);
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.
The property from the given index.
Exception Type | Condition |
---|---|
NotSupportedException | The entry's properties cannot be indexed by number. |
DirectoryEntryPropertyCollection Class | DirectoryEntryPropertyCollection Members | System.DirectoryServices Namespace | DirectoryEntryPropertyCollection.Item Overload List | DirectoryEntryProperty