ProfileGroupSettingsCollection.Add メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ProfileGroupSettingsCollection.Add メソッドの意味・解説 

ProfileGroupSettingsCollection.Add メソッド

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

ProfileGroupSettings オブジェクトコレクション追加します

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

Public Sub Add ( _
    group As ProfileGroupSettings _
)
Dim instance As ProfileGroupSettingsCollection
Dim group As ProfileGroupSettings

instance.Add(group)
public void Add (
    ProfileGroupSettings group
)
public:
void Add (
    ProfileGroupSettings^ group
)
public void Add (
    ProfileGroupSettings group
)
public function Add (
    group : ProfileGroupSettings
)

パラメータ

group

コレクション追加する ProfileGroupSettings オブジェクト

例外例外
例外種類条件

ConfigurationException

追加する ProfileGroupSettings オブジェクトが既にコレクション存在しているか、またはコレクション読み取り専用です。

解説解説

コレクションに同じ名前の ProfileGroupSettings オブジェクト複数存在することはできません。

使用例使用例

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

' Add a new group.
Dim newPropGroup As ProfileGroupSettings =
 new ProfileGroupSettings("Forum")
profileSection.PropertySettings.GroupSettings.Add(newPropGroup)

' Add a new PropertySettings to the group.
Dim newProp As ProfilePropertySettings = new
 ProfilePropertySettings("AvatarImage")
newProp.Type = "System.String, System.dll"
newPropGroup.PropertySettings.Add(newProp)

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

' Clear all PropertySettings from the group.
newPropGroup.PropertySettings.Clear()
// Add a new group.
ProfileGroupSettings newPropGroup = new ProfileGroupSettings("Forum");
profileSection.PropertySettings.GroupSettings.Add(newPropGroup);

// Add a new PropertySettings to the group.
ProfilePropertySettings newProp = new ProfilePropertySettings("AvatarImage");
newProp.Type = "System.String, System.dll";
newPropGroup.PropertySettings.Add(newProp);

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

// Clear all PropertySettings from the group.
newPropGroup.PropertySettings.Clear();
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ProfileGroupSettingsCollection クラス
ProfileGroupSettingsCollection メンバ
System.Web.Configuration 名前空間
ProfileSection
ProfileGroupSettings クラス
ProfileGroupSettings.Name プロパティ



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ProfileGroupSettingsCollection.Add メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ProfileGroupSettingsCollection.Add メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS