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 同名物件。