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 的对象。

适用于