ActiveDirectoryMembershipUser コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ActiveDirectoryMembershipUser クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| ActiveDirectoryMembershipUser() |
ActiveDirectoryMembershipUser クラスを継承するクラスのActiveDirectoryMembershipUser オブジェクトの新しいインスタンスを初期化します。 |
| ActiveDirectoryMembershipUser(String, String, Object, String, String, String, Boolean, Boolean, DateTime, DateTime, DateTime, DateTime, DateTime) |
指定したプロパティ値を使用して、 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 。
- providerUserKey
- Object
メンバーシップ ユーザーの ProviderUserKey 。
- passwordQuestion
- String
メンバーシップ ユーザーの PasswordQuestion 。
- 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、CreateUser、GetUser、GetAllUsers、またはFindUsersByNameメソッドから返されたFindUsersByEmail オブジェクトをUpdateUser メソッドに渡すこともできます。
ActiveDirectoryMembershipUser オブジェクトは、一般的に、 CreateUser、 GetUser、 GetAllUsers、 UpdateUser、 FindUsersByName、および FindUsersByEmail メソッドのメンバーシップ プロバイダーの実装によっても構築されます。