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

適用於