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

Visual Basic
Dim instance As ManagementAgent
Dim dn As String
Dim returnValue As ReferenceValue

returnValue = instance.CreateDN(dn)

Syntax

Visual Basic
Public MustOverride Function CreateDN ( _
		dn As String _
) As ReferenceValue
C#
public abstract ReferenceValue CreateDN (
		string dn
)
C++
public:
virtual ReferenceValue^ CreateDN (
		String^ dn
) abstract
J#
public abstract ReferenceValue CreateDN (
		String dn
)
JScript
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