ProfileGroupSettingsCollection.Remove メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

ProfileGroupSettings オブジェクトコレクションから削除します

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Visual Basic (宣言)

Public Sub Remove ( _ name As String _ )

Visual Basic (使用法)

Dim instance As ProfileGroupSettingsCollection Dim name As String

instance.Remove(name)

C#

public void Remove ( string name )

C++

public: void Remove ( String^ name )

J#

public void Remove ( String name )

JScript

public function Remove ( name : String )

パラメータ

name

コレクションから削除する ProfileGroupSettings オブジェクトの名前。

解説解説

このメソッドは、上位構成ファイル定義されすべての要素について、構成ファイル適切なセクションremove 要素挿入します現在の構成ファイル該当セクション要素定義されている場合、そのエントリ構成ファイルから削除されます。削除するオブジェクトコレクション存在している必要があります

使用例使用例

Remove メソッド使用するコード例次に示します。このコード例は、ProfileSection クラストピック取り上げているコード例一部分です。

Visual Basic

' Remove a PropertySettings from the group. newPropGroup.PropertySettings.Remove("AvatarImage") newPropGroup.PropertySettings.RemoveAt(0)

C#

// 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 によってサポートされていないバージョンありますサポートされているバージョンについては、「システム要件」を参照してください

バージョン情報バージョン情報

.NET Framework
サポート対象 : 2.0

参照参照

関連項目
ProfileGroupSettingsCollection クラス
ProfileGroupSettingsCollection メンバ
System.Web.Configuration 名前空間
ProfileSection
ProfileGroupSettings クラス