This documentation is archived and is not being maintained.

Principal.Context Property

Gets a principal context that is associated with the principal.

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

public PrincipalContext Context { get; }

Property Value

Type: System.DirectoryServices.AccountManagement.PrincipalContext
A PrincipalContext object that contains the context associated with this principal.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5