ConnectedMACollection.Item Property
The ConnectedMACollection.Item property retrieves a specific member of the collection.
public ConnectedMA this[
string MAName
] {get;}
Public ReadOnly Property Item( _
ByVal MAName As String _
) As ConnectedMA
Parameters
- MAName
The name of the management agent to retrieve. The management agent name is not case-sensitive.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | The MAName is null. |
NoSuchManagementAgentException | The management agent is not present in the collection. |
Examples
The following example demonstrates how to use this property.
Dim connMA as ConnectedMA
connMA = mventry.ConnectedMAs("Fabrikam HR MA")
ConnectedMA connMA = mventry.ConnectedMAs["Fabrikam HR MA"];
Requirements
Product | ILM 2007 FP1 |
Namespace | Microsoft.MetadirectoryServices |
Assembly | Microsoft.MetadirectoryServices |
.NET Framework | .NET Framework 2.0 |
See Also
ConnectedMA
ConnectedMACollection
NoSuchManagementAgentException
Send comments about this topic to Microsoft
Build date: 2/16/2009