Redigera

Dela via


ActiveDirectoryMembershipUser Constructors

Definition

Initializes a new instance of the ActiveDirectoryMembershipUser class.

Overloads

ActiveDirectoryMembershipUser()

Initializes a new instance of an ActiveDirectoryMembershipUser object for a class that inherits the ActiveDirectoryMembershipUser class.

ActiveDirectoryMembershipUser(String, String, Object, String, String, String, Boolean, Boolean, DateTime, DateTime, DateTime, DateTime, DateTime)

Creates a new instance of the ActiveDirectoryMembershipUser class with the specified property values.

ActiveDirectoryMembershipUser()

Initializes a new instance of an ActiveDirectoryMembershipUser object for a class that inherits the ActiveDirectoryMembershipUser class.

protected:
 ActiveDirectoryMembershipUser();
protected ActiveDirectoryMembershipUser ();
Protected Sub New ()

Remarks

The ActiveDirectoryMembershipUser constructor is not intended to be used from your code.

Applies to

ActiveDirectoryMembershipUser(String, String, Object, String, String, String, Boolean, Boolean, DateTime, DateTime, DateTime, DateTime, DateTime)

Creates a new instance of the ActiveDirectoryMembershipUser class with the specified property values.

public:
 ActiveDirectoryMembershipUser(System::String ^ providerName, System::String ^ name, System::Object ^ providerUserKey, System::String ^ email, System::String ^ passwordQuestion, System::String ^ comment, bool isApproved, bool isLockedOut, DateTime creationDate, DateTime lastLoginDate, DateTime lastActivityDate, DateTime lastPasswordChangedDate, DateTime lastLockoutDate);
public ActiveDirectoryMembershipUser (string providerName, string name, object providerUserKey, string email, string passwordQuestion, string comment, bool isApproved, bool isLockedOut, DateTime creationDate, DateTime lastLoginDate, DateTime lastActivityDate, DateTime lastPasswordChangedDate, DateTime lastLockoutDate);
new System.Web.Security.ActiveDirectoryMembershipUser : string * string * obj * string * string * string * bool * bool * DateTime * DateTime * DateTime * DateTime * DateTime -> System.Web.Security.ActiveDirectoryMembershipUser
Public Sub New (providerName As String, name As String, providerUserKey As Object, email As String, passwordQuestion As String, comment As String, isApproved As Boolean, isLockedOut As Boolean, creationDate As DateTime, lastLoginDate As DateTime, lastActivityDate As DateTime, lastPasswordChangedDate As DateTime, lastLockoutDate As DateTime)

Parameters

providerName
String

The ProviderName for the membership user.

name
String

The UserName for the membership user.

providerUserKey
Object

The ProviderUserKey for the membership user.

email
String

The Email address of the membership user.

passwordQuestion
String

The PasswordQuestion for the membership user.

comment
String

The Comment for the membership user.

isApproved
Boolean

The IsApproved value for the membership user.

isLockedOut
Boolean

The IsLockedOut value for the membership user.

creationDate
DateTime

The CreationDate for the membership user.

lastLoginDate
DateTime

The LastLoginDate for the membership user. This parameter is not used.

lastActivityDate
DateTime

The LastActivityDate for the membership user. This parameter is not used.

lastPasswordChangedDate
DateTime

The LastPasswordChangedDate for the membership user.

lastLockoutDate
DateTime

The LastLockoutDate for the membership user.

Exceptions

providerUserKey is not a SecurityIdentifier object.

-or-

providerName is null and a provider is not set in the application's configuration file.

Remarks

Creating a new ActiveDirectoryMembershipUser object does not add a new membership user object to the membership data store. To add a new membership user to the membership data store, use the CreateUser method. Note that the CreateUser method returns an ActiveDirectoryMembershipUser object for the membership user added to the data store.

ActiveDirectoryMembershipUser objects are commonly constructed in application code for use with the UpdateUser method, although you can also pass an ActiveDirectoryMembershipUser object returned from the CreateUser, GetUser, GetAllUsers, FindUsersByName, or FindUsersByEmail method to the UpdateUser method as well.

ActiveDirectoryMembershipUser objects are also commonly constructed by membership provider implementations for the CreateUser, GetUser, GetAllUsers, UpdateUser, FindUsersByName, and FindUsersByEmail methods.

Applies to