Principal.Guid Property

 

Gets the GUID associated with this principal.

Namespace:   System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

public Nullable<Guid> Guid {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.Nullable<Guid>

The Nullable Guid associated with this principal or null if there is no GUID.

This property will always return null when the ContextType property is set to Machine.

.NET Framework
Available since 3.5

System.DirectoryServices.AccountManagement
Principal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show: