Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AuthenticablePrincipal Constructor (PrincipalContext, String, String, Boolean)

AuthenticablePrincipal Constructor (PrincipalContext, String, String, Boolean)

Initializes a new instance of the AuthenticablePrincipal class by using the specified context, SAM account name, password, and enabled value. This constructor is called by derived-class constructors to initialize the base class and is not intended for use directly from your code.

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

protected internal AuthenticablePrincipal(
	PrincipalContext context,
	string samAccountName,
	string password,
	bool enabled
)

Parameters

context
Type: System.DirectoryServices.AccountManagement.PrincipalContext
The PrincipalContext that specifies the server or domain against which operations are performed.
samAccountName
Type: System.String
The SAM account name for this principal.
password
Type: System.String
The password for this account.
enabled
Type: System.Boolean
A Boolean value that specifies whether the account is enabled.

Custom extension classes that derive from this class can call this constructor from the derived class constructor to initialize the base class. For more information, see the Principal Extensions overview topic.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2015 Microsoft