RootProfilePropertySettingsCollection.GroupSettings Propriedade
Definição
Obtém um ProfileGroupSettingsCollection que contém uma coleção de objetos ProfileGroupSettings.Gets a ProfileGroupSettingsCollection containing a collection of ProfileGroupSettings objects.
public:
property System::Web::Configuration::ProfileGroupSettingsCollection ^ GroupSettings { System::Web::Configuration::ProfileGroupSettingsCollection ^ get(); };
[System.Configuration.ConfigurationProperty("group")]
public System.Web.Configuration.ProfileGroupSettingsCollection GroupSettings { get; }
[<System.Configuration.ConfigurationProperty("group")>]
member this.GroupSettings : System.Web.Configuration.ProfileGroupSettingsCollection
Public ReadOnly Property GroupSettings As ProfileGroupSettingsCollection
Valor da propriedade
Uma coleção de ProfileGroupSettingsCollection.A ProfileGroupSettingsCollection collection.
- Atributos
Exemplos
O exemplo de código a seguir mostra como usar a GroupSettings propriedade.The following code example shows how to use the GroupSettings property. Este exemplo de código faz parte de um exemplo maior fornecido para a ProfileSection classe.This code example is part of a larger example provided for the ProfileSection class.
// Display all current ProfileGroupSettings.
Console.WriteLine("Current ProfileGroupSettings:");
int PGSCtr = 0;
foreach (ProfileGroupSettings propGroups in profileSection.PropertySettings.GroupSettings)
{
Console.WriteLine(" {0}: ProfileGroupSetting '{1}'", ++PGSCtr,
propGroups.Name);
int PPSCtr = 0;
foreach (ProfilePropertySettings props in propGroups.PropertySettings)
{
Console.WriteLine(" {0}: ProfilePropertySetting '{1}'", ++PPSCtr,
props.Name);
}
}
' Display all current ProfileGroupSettings.
Console.WriteLine("Current ProfileGroupSettings:")
Dim PGSCtr As Integer = 0
For Each propGroups As ProfileGroupSettings In profileSection.PropertySettings.GroupSettings
Console.WriteLine(" {0}: ProfileGroupSettings '{1}'", ++PGSCtr, _
propGroups.Name)
Dim PPSCtr As Integer = 0
For Each props As ProfilePropertySettings In propGroups.PropertySettings
Console.WriteLine(" {0}: ProfilePropertySetting '{1}'", ++PPSCtr, _
props.Name)
Next
Next
Comentários
A GroupSettings propriedade permite que você crie grupos de ProfilePropertySettingsCollection coleções.The GroupSettings property allows you to create groups of ProfilePropertySettingsCollection collections.