Share via


ManagementAgent.CreateDN Method (Value)

Creates a ReferenceValue object from a Value object.

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

Usage

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

returnValue = instance.CreateDN(dn)

Syntax

'Declaration
Public MustOverride Function CreateDN ( _
    dn As Value _
) As ReferenceValue
public abstract ReferenceValue CreateDN (
    Value dn
)
public:
virtual ReferenceValue^ CreateDN (
    Value^ dn
) abstract
public abstract ReferenceValue CreateDN (
    Value dn
)
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

Reference

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