语言

ActiveDirectoryMembershipUser 构造函数

定义

初始化 ActiveDirectoryMembershipUser 类的新实例。

重载

ActiveDirectoryMembershipUser()

为继承ActiveDirectoryMembershipUser该类的ActiveDirectoryMembershipUser类初始化对象的新实例。

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

注解

构造 ActiveDirectoryMembershipUser 函数不应用于代码。

适用于

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

使用指定的属性值创建类的新实例 ActiveDirectoryMembershipUser 。

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)

参数

providerName
String

成员 ProviderName 身份用户。

name
String

成员 UserName 身份用户。

providerUserKey
Object

成员 ProviderUserKey 身份用户。

email
String

Email成员身份用户的地址。

passwordQuestion
String

成员 PasswordQuestion 身份用户。

comment
String

成员 Comment 身份用户。

isApproved
Boolean

成员 IsApproved 身份用户的值。

isLockedOut
Boolean

成员 IsLockedOut 身份用户的值。

creationDate
DateTime

成员 CreationDate 身份用户。

lastLoginDate
DateTime

成员 LastLoginDate 身份用户。 未使用此参数。

lastActivityDate
DateTime

成员 LastActivityDate 身份用户。 未使用此参数。

lastPasswordChangedDate
DateTime

成员 LastPasswordChangedDate 身份用户。

lastLockoutDate
DateTime

成员 LastLockoutDate 身份用户。

例外

providerUserKey 不是对象 SecurityIdentifier 。

-或-

providerName 是 null 且提供程序未在应用程序的配置文件中设置。

注解

创建新 ActiveDirectoryMembershipUser 对象不会向成员资格数据存储添加新的成员身份用户对象。 若要向成员身份数据存储添加新的成员身份用户,请使用 CreateUser 该方法。 请注意,该方法 CreateUser 返回 ActiveDirectoryMembershipUser 添加到数据存储的成员身份用户的对象。

ActiveDirectoryMembershipUser对象通常在应用程序代码中构造,以便与该方法一起使用UpdateUser,不过也可以ActiveDirectoryMembershipUser将返回的对象 CreateUserGetUserGetAllUsersFindUsersByNameFindUsersByEmailUpdateUser传递给该方法。

对象通常也由成员资格提供程序实现为 a0> 和方法构造。

适用于