ProfileGroupSettings.PropertySettings Свойство

Определение

Получает коллекцию настроек свойств профиля, содержащихся в данном объекте.Gets the collection of profile property settings this object contains.

public:
 property System::Web::Configuration::ProfilePropertySettingsCollection ^ PropertySettings { System::Web::Configuration::ProfilePropertySettingsCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.ProfilePropertySettingsCollection PropertySettings { get; }
member this.PropertySettings : System.Web.Configuration.ProfilePropertySettingsCollection
Public ReadOnly Property PropertySettings As ProfilePropertySettingsCollection

Значение свойства

Коллекция ProfilePropertySettingsCollection, содержащая все объекты ProfilePropertySettings, содержащиеся в данной группе.A ProfilePropertySettingsCollection collection that contains all the ProfilePropertySettings objects contained in this group.

Атрибуты

Примеры

В следующем примере кода показано, как использовать свойство PropertySettings.The following code example shows how to use the PropertySettings property. Этот пример кода является частью большого примера, приведенного для класса ProfileSection.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

Применяется к

Дополнительно