Principal.ContextType Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the context type enumeraton value that specifies the type of principal context associated with this principal.

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

public ContextType ContextType {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.DirectoryServices.AccountManagement.ContextType

A ContextType enumeration value that specifies the context type.

The context type is set on the principal context object in the PrincipalContext constructor. The value stored in this class is associated with the ContextType property.

.NET Framework
Available since 3.5

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

Return to top
Show: