ConnectorCollectionByIndex.Item Property

Gets the connector object at the specified index.

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

Usage

'Usage
Dim instance As ConnectorCollectionByIndex
Dim index As Integer
Dim value As CSEntry

value = instance(index)

Syntax

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

Parameters

  • index
    Contains the zero-based index of the connector to retrieve.

Property Value

Returns a CSEntry object.

Example

The following examples demonstrate how to use this property.

Dim connMA As ConnectedMA
Dim connectorsByIndex As ConnectorCollectionByIndex
Dim i As Integer

connMA = mventry.ConnectedMAs("Fabrikam HR MA")
connectorsByIndex = connMA.Connectors.ByIndex
For i = 0 To connMA.Connectors.Count Step 1
    Dim connector As CSEntry
    connector = connectorsByIndex(i)
Next
ConnectedMA connMA = mventry.ConnectedMAs["Fabrikam HR MA"];
ConnectorCollectionByIndex connectorsByIndex = connMA.Connectors.ByIndex;
for(int i = 0; i < connMA.Connectors.Count; i++)
{
    CSEntry connector = connectorsByIndex[i];
}

Exceptions

Exception type Condition
System.ArgumentOutOfRangeException

The connector is not present in the collection.

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

Change History

See Also

Reference

ConnectorCollectionByIndex Class
ConnectorCollectionByIndex Members
Microsoft.MetadirectoryServices Namespace
ConnectorCollectionByIndex Class
CSEntry