Gets the connector object at the specified index.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As ConnectorCollectionByIndex
Dim index As Integer
Dim value As CSEntry

value = instance(index)

Syntax

Visual Basic
Public MustOverride ReadOnly Default Property Item ( _
		index As Integer _
) As CSEntry
C#
public abstract CSEntry this [
		int index
] { get; }
C++
public:
virtual property CSEntry^ default [int] {
		CSEntry^ get (int index) abstract;
}
J#
/** @property */
public abstract CSEntry get_Item (int index)
JScript

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.

Visual Basic  Copy Code
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
C#  Copy Code
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

[an error occurred while processing this directive]