本文整理汇总了VB.NET中System.Web.Configuration.ProfileGroupSettingsCollection.Add方法的典型用法代码示例。如果您正苦于以下问题:VB.NET ProfileGroupSettingsCollection.Add方法的具体用法?VB.NET ProfileGroupSettingsCollection.Add怎么用?VB.NET ProfileGroupSettingsCollection.Add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。
在下文中一共展示了ProfileGroupSettingsCollection.Add方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: ProfileGroupSettings
' 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()