Microsoft Identity Integration Server 2003 Developer Reference

ConnectorCollectionByIndex.Item

The Item property retrieves the connector object at the specified index.
[C#]
public CSEntry this[
  Int32 index
] {get;}
[Visual Basic .NET]
Public ReadOnly Property Item( _
  ByVal index As Int32 _
) As CSEntry

Parameters

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

Exceptions

Exception type Condition
ArgumentOutOfRangeException The connector is not present in the collection.

Example Code [Visual Basic .NET]

The following example demonstrates 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

Example Code [C#]

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];
}

Requirements

Product: Microsoft Identity Integration Server 2003
Namespace: Defined in Microsoft.MetadirectoryServices.
Assembly: Requires Microsoft.MetadirectoryServices (in Microsoft.MetadirectoryServices.dll).
.NET Framework: Requires .NET Framework 1.1.

See Also

ConnectorCollectionByIndex, CSEntry