ConnectorCollectionByIndex.Item Property
The Item property retrieves the connector object at the specified index.
public CSEntry this[
Int32 index
] {get;}
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. |
Examples
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
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 | ILM 2007 FP1 |
Namespace | Microsoft.MetadirectoryServices |
Assembly | Microsoft.MetadirectoryServices |
.NET Framework | .NET Framework 2.0 |
See Also
ConnectorCollectionByIndex
CSEntry
Send comments about this topic to Microsoft
Build date: 2/16/2009