ConnectedMACollection.Item Property
Gets a specific member of the collection.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As ConnectedMACollection
Dim MAName As String
Dim value As ConnectedMA
value = instance(MAName)
Syntax
'Declaration
Public MustOverride ReadOnly Default Property Item ( _
MAName As String _
) As ConnectedMA
public abstract ConnectedMA this [
string MAName
] { get; }
public:
virtual property ConnectedMA^ default [String^] {
ConnectedMA^ get (String^ MAName) abstract;
}
/** @property */
public abstract ConnectedMA get_Item (String MAName)
Parameters
- MAName
The name of the management agent to retrieve. The management agent name is not case-sensitive.
Property Value
Returns a ConnectedMA object.
Example
The following examples demonstrate how to use this property.
Dim connMA as ConnectedMA
connMA = mventry.ConnectedMAs("Fabrikam HR MA")
ConnectedMA connMA = mventry.ConnectedMAs["Fabrikam HR MA"];
Exceptions
Exception type | Condition |
---|---|
System.ArgumentNullException | The MAName is null. |
NoSuchManagementAgentException | The management agent 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
ConnectedMACollection Class
ConnectedMACollection Members
Microsoft.MetadirectoryServices Namespace
ConnectedMA Class
NoSuchManagementAgentException
ConnectedMACollection Class