Principal.ContextType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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 {

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

Principal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top