共用方式為


FormsAuthenticationUserCollection.Remove(String) 方法

定義

從集合中移除 FormsAuthenticationUser 物件。

public:
 void Remove(System::String ^ name);
public void Remove (string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)

參數

name
String

要從集合中移除之 FormsAuthenticationUser 物件的名稱。

例外狀況

集合中沒有具有指定索引鍵的 FormsAuthenticationUser 物件、專案已經移除,或集合是唯讀的。

備註

這個方法會將 remove 專案插入組態檔的適當區段,以取得較高層級組態檔中定義的任何專案。 如果專案是在目前組態檔的適當區段中定義,則會從組態檔中移除其專案。 要移除的對象必須存在於集合中。

適用於