共用方式為


FormsAuthenticationUserCollection.Add(FormsAuthenticationUser) 方法

定義

FormsAuthenticationUser 物件加入至集合。

public:
 void Add(System::Web::Configuration::FormsAuthenticationUser ^ user);
public void Add (System.Web.Configuration.FormsAuthenticationUser user);
member this.Add : System.Web.Configuration.FormsAuthenticationUser -> unit
Public Sub Add (user As FormsAuthenticationUser)

參數

user
FormsAuthenticationUser

要加入至集合的 FormsAuthenticationUser 物件。

例外狀況

集合中已經存在 FormsAuthenticationUser 物件,或集合是唯讀的。

備註

集合不能包含具有相同名稱的 FormsAuthenticationUser 物件。

適用於