ProfileGroupSettingsCollection.Remove メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)
メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。
ProfileGroupSettings オブジェクトをコレクションから削除します。
名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文
Public Sub Remove ( _ name As String _ )
Dim instance As ProfileGroupSettingsCollection Dim name As String
instance.Remove(name)
public void Remove ( string name )
public: void Remove ( String^ name )
public void Remove ( String name )
public function Remove ( name : String )
コレクションから削除する ProfileGroupSettings オブジェクトの名前。
このメソッドは、上位の構成ファイルで定義されたすべての要素について、構成ファイルの適切なセクションに remove 要素を挿入します。現在の構成ファイルの該当セクションに要素が定義されている場合、そのエントリは構成ファイルから削除されます。削除するオブジェクトがコレクションに存在している必要があります。
Remove メソッドを使用するコード例を次に示します。このコード例は、ProfileSection クラスのトピックで取り上げているコード例の一部分です。
' Remove a PropertySettings from the group. newPropGroup.PropertySettings.Remove("AvatarImage") newPropGroup.PropertySettings.RemoveAt(0)
// Remove a PropertySettings from the group. newPropGroup.PropertySettings.Remove("AvatarImage"); newPropGroup.PropertySettings.RemoveAt(0);
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
関連項目
ProfileGroupSettingsCollection クラス
ProfileGroupSettingsCollection メンバ
System.Web.Configuration 名前空間
ProfileSection
ProfileGroupSettings クラス