ProfileGroupSettingsCollection.Add メソッド
アセンブリ: System.Web (system.web.dll 内)

Dim instance As ProfileGroupSettingsCollection Dim group As ProfileGroupSettings instance.Add(group)



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();

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


Weblioに収録されているすべての辞書からProfileGroupSettingsCollection.Add メソッドを検索する場合は、下記のリンクをクリックしてください。

- ProfileGroupSettingsCollection.Add メソッドのページへのリンク