Partager via


ReferenceValue.Item Property

Gets an individual component of the distinguished name.

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)

Usage

'Usage
Dim instance As ReferenceValue
Dim componentIndex As Integer
Dim value As String

value = instance(componentIndex)

Syntax

'Declaration
Public MustOverride ReadOnly Default Property Item ( _
    componentIndex As Integer _
) As String
public abstract string this [
    int componentIndex
] { get; }
public:
virtual property String^ default [int] {
    String^ get (int componentIndex) abstract;
}
/** @property */
public abstract String get_Item (int componentIndex)

Parameters

  • componentIndex
    The zero-based index of the distinguished name component to retrieve.

Property Value

Returns a String.

Exceptions

Exception type Condition
System.ArgumentOutOfRangeException

There is no distinguished name component at the specified componentIndex value.

Remarks

The componentIndex parameter identifies which component of the distinguished name to retrieve, from left to right. For example, in the distinguished name "cn=jeffsmith,dc=fabrikam,dc=com", a componentIndex of 0 retrieves "cn=jeffsmith" and a componentIndex of 1 retrieves "dc=fabrikam".

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

ReferenceValue Class
ReferenceValue Members
Microsoft.MetadirectoryServices Namespace
ReferenceValue Class