FormsAuthenticationUserCollection.Add(FormsAuthenticationUser) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 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)
參數
要加入至集合的 FormsAuthenticationUser 物件。
例外狀況
集合中已經存在 FormsAuthenticationUser 物件,或集合是唯讀的。
備註
集合不能包含具有相同名稱的 FormsAuthenticationUser 物件。