Partager via


ADObjectId.ToGuidOrDNString method

Returns the GUID or distinguished name of the Active Directory object.

Namespace:  Microsoft.Exchange.Data.Directory
Assembly:  Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)

Syntax

'Declaration
Public Function ToGuidOrDNString As String
'Usage
Dim instance As ADObjectId
Dim returnValue As String

returnValue = instance.ToGuidOrDNString()
public string ToGuidOrDNString()

Return value

Type: System.String
The GUID or distinguished name of the Active Directory object.

Remarks

The ToGuidOrDNString() method returns the GUID or distinguished name as follows:

See also

Reference

ADObjectId class

ADObjectId members

Microsoft.Exchange.Data.Directory namespace