Creates a ReferenceValue object from a Value object.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

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

returnValue = instance.CreateDN(dn)

Syntax

Visual Basic
Public MustOverride Function CreateDN ( _
		dn As Value _
) As ReferenceValue
C#
public abstract ReferenceValue CreateDN (
		Value dn
)
C++
public:
virtual ReferenceValue^ CreateDN (
		Value^ dn
) abstract
J#
public abstract ReferenceValue CreateDN (
		Value dn
)
JScript
public abstract function CreateDN (
		dn : Value
) : ReferenceValue

Parameters

dn

Contains a Value object that contains the distinguished name from which the new object is derived. This method uses the Value method of the Value object to obtain the distinguished name.

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