Gets a specific member of the collection.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As ConnectedMACollection
Dim MAName As String
Dim value As ConnectedMA

value = instance(MAName)

Syntax

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

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.

Visual Basic  Copy Code
Dim connMA as ConnectedMA 
connMA = mventry.ConnectedMAs("Fabrikam HR MA")
C#  Copy Code
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