ADObjectId.ToDNString method
Returns the Active Directory object's distinguished name.
Namespace: Microsoft.Exchange.Data.Directory
Assembly: Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)
Syntax
'Declaration
Public Function ToDNString As String
'Usage
Dim instance As ADObjectId
Dim returnValue As String
returnValue = instance.ToDNString()
public string ToDNString()
Return value
Type: System.String
The Active Directory object's distinguished name.
Remarks
The ToDNString() method returns a distinguished name as follows:
If the DistinguishedName property is not empty, the DistinguishedName property is returned as a string.
If the DistinguishedName property is empty and the ObjectGuid property is not empty, the ObjectGuid property is returned as a string.
If both the DistinguishedName property and the ObjectGuid property are empty, an empty string is returned.