Share via


ProfileGroupSettings.PropertySettings プロパティ

定義

このオブジェクトに格納されているプロファイル プロパティ設定のコレクションを取得します。

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

プロパティ値

このグループに含まれるすべての ProfilePropertySettingsCollection オブジェクトを格納している ProfilePropertySettings コレクション。

属性

次のコード例は、PropertySettings プロパティの使用方法を示しています。 このコード例は、ProfileSection クラスのために提供されている大規模な例の一部です。

// 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

適用対象

こちらもご覧ください