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

 
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.

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