Gets the connector object that has the specified distinguished
name.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in
microsoft.metadirectoryservicesex.dll)
Usage
Syntax
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