ProfilePropertySettingsCollection クラス
アセンブリ: System.Web (system.web.dll 内)


構成ファイルの profile セクションは、ユーザー プロファイルのスキーマを指定します。実行時に、ASP.NET コンパイル システムは、profile セクションに指定された情報を使用して、ProfileBase から派生した ProfileCommon というクラスを生成します。ProfileCommon クラス定義は、構成ファイルの profile セクションの properties サブセクションで定義されたプロパティに基づきます。このクラスのインスタンスはユーザー プロファイルごとに作成され、Profile プロパティを使用して、コードにある個々のプロファイル値にアクセスできます。プロファイル プロパティの詳細については、「ASP.NET プロファイル プロパティの概要」を参照してください。ASP.NET 2.0 に追加されたプロファイル機能の詳細については、「ASP.NET プロファイル プロパティ」を参照してください。

ProfilePropertySettingsCollection クラスのインスタンスである PropertySettings プロパティを使用する方法を次のコード例に示します。このコード例は、ProfileSection クラスのトピックで取り上げているコード例の一部分です。
' 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
// 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); } }

System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.ProfilePropertySettingsCollection
System.Web.Configuration.RootProfilePropertySettingsCollection


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ProfilePropertySettingsCollection クラスのページへのリンク