AuthenticablePrincipal Constructor (PrincipalContext^, String^, String^, Boolean)


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

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)

public protected:
	PrincipalContext^ context,
	String^ samAccountName,
	String^ password,
	bool enabled


Type: System.DirectoryServices.AccountManagement::PrincipalContext^

The PrincipalContext that specifies the server or domain against which operations are performed.

Type: System::String^

The SAM account name for this principal.

Type: System::String^

The password for this account.

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
Available since 3.5
Return to top