ClientFormsIdentity 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ClientFormsIdentity 類別的新執行個體。
public:
ClientFormsIdentity(System::String ^ name, System::String ^ password, System::Web::Security::MembershipProvider ^ provider, System::String ^ authenticationType, bool isAuthenticated, System::Net::CookieContainer ^ authenticationCookies);
public ClientFormsIdentity(string name, string password, System.Web.Security.MembershipProvider provider, string authenticationType, bool isAuthenticated, System.Net.CookieContainer authenticationCookies);
new System.Web.ClientServices.ClientFormsIdentity : string * string * System.Web.Security.MembershipProvider * string * bool * System.Net.CookieContainer -> System.Web.ClientServices.ClientFormsIdentity
Public Sub New (name As String, password As String, provider As MembershipProvider, authenticationType As String, isAuthenticated As Boolean, authenticationCookies As CookieContainer)
參數
- name
- String
驗證使用者的名稱。
- password
- String
已認證使用者的密碼。
- provider
- MembershipProvider
會員提供者用來驗證使用者。
- authenticationType
- String
所使用的認證類型。
- isAuthenticated
- Boolean
true如果使用者已被認證;否則,。 false
- authenticationCookies
- CookieContainer
這些 cookie 是從認證服務中取得的。