Gets the connector object that has the specified distinguished name.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As ConnectorCollectionByDN
Dim DN As ReferenceValue
Dim value As CSEntry

value = instance(DN)

Syntax

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

Parameters

DN

Contains a ReferenceValue object that contains the distinguished name of the connector to retrieve.

Property Value

Returns a CSEntry object.

Example

The following examples demonstrate how to use this property.

Visual Basic  Copy Code
Dim connMA As ConnectedMA
Dim connectorsByDN As ConnectorCollectionByDN
Dim dn As ReferenceValue
Dim connJeffSmith As CSEntry

connMA = mventry.ConnectedMAs("Fabrikam HR MA")
connectorsByDN = connMA.Connectors.ByDN
dn = connMA.CreateDN("CN=Jeff Smith,DC=fabrikam,DC=com")
connJeffSmith = connectorsByDN(dn)
C#  Copy Code
ConnectedMA connMA = mventry.ConnectedMAs["Fabrikam HR MA"];
ConnectorCollectionByDN connectorsByDN = connMA.Connectors.ByDN;
ReferenceValue dn = connMA.CreateDN("CN=Jeff Smith,DC=fabrikam,DC=com");
CSEntry connJeffSmith = connectorsByDN[dn];

Exceptions

Exception type Condition
System.ArgumentNullException

The DN is null.

NoSuchObjectException

The connector 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