Share via


ConnectorCollectionByDN.Item Property

Gets the connector object that has the specified distinguished name.

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)

Usage

'Usage
Dim instance As ConnectorCollectionByDN
Dim DN As ReferenceValue
Dim value As CSEntry

value = instance(DN)

Syntax

'Declaration
Public MustOverride ReadOnly Default Property Item ( _
    DN As ReferenceValue _
) As CSEntry
public abstract CSEntry this [
    ReferenceValue DN
] { get; }
public:
virtual property CSEntry^ default [ReferenceValue^] {
    CSEntry^ get (ReferenceValue^ DN) abstract;
}
/** @property */
public abstract CSEntry get_Item (ReferenceValue DN)

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.

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)
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

Reference

ConnectorCollectionByDN Class
ConnectorCollectionByDN Members
Microsoft.MetadirectoryServices Namespace
CSEntry
NoSuchObjectException
ReferenceValue
ConnectorCollectionByDN Class