ProfileGroupSettings.PropertySettings Właściwość

Definicja

Pobiera kolekcję ustawień właściwości profilu, które zawiera ten obiekt.

C#
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.ProfilePropertySettingsCollection PropertySettings { get; }

Wartość właściwości

ProfilePropertySettingsCollection Kolekcja zawierająca ProfilePropertySettings wszystkie obiekty zawarte w tej grupie.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano, jak używać PropertySettings właściwości . Ten przykład kodu jest częścią większego przykładu udostępnionego ProfileSection dla klasy .

C#
// 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);
    }
}

Dotyczy

Produkt Wersje
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Zobacz też