Partager via


ManagementAgent.CreateDN Method (String)

Creates a ReferenceValue object from a distinguished name string. The string can contain escaped characters.

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

Usage

'Usage
Dim instance As ManagementAgent
Dim dn As String
Dim returnValue As ReferenceValue

returnValue = instance.CreateDN(dn)

Syntax

'Declaration
Public MustOverride Function CreateDN ( _
    dn As String _
) As ReferenceValue
public abstract ReferenceValue CreateDN (
    string dn
)
public:
virtual ReferenceValue^ CreateDN (
    String^ dn
) abstract
public abstract ReferenceValue CreateDN (
    String dn
)
public abstract function CreateDN (
    dn : String
) : ReferenceValue

Parameters

  • dn
    Specifies the distinguished name. The string can contain escaped characters.

Return Value

Returns a ReferenceValue object that represents the distinguished name.

Exceptions

Exception type Condition
System.ArgumentNullException

The argument is null.

InvalidDNException

The distinguished name component that is represented by the dn parameter is not valid

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

See Also

Reference

ManagementAgent Class
ManagementAgent Members
Microsoft.MetadirectoryServices Namespace
ReferenceValue
InvalidDNException Class
ManagementAgent Class