ProfilePropertySettingsCollection クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ProfilePropertySettingsCollection オブジェクトのセットを格納します。
public ref class ProfilePropertySettingsCollection : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfilePropertySettings))]
public class ProfilePropertySettingsCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfilePropertySettings))>]
type ProfilePropertySettingsCollection = class
inherit ConfigurationElementCollection
Public Class ProfilePropertySettingsCollection
Inherits ConfigurationElementCollection
- 継承
- 派生
- 属性
例
次のコード例は、 クラスのインスタンスである プロパティを PropertySettings 使用する方法を ProfilePropertySettingsCollection 示しています。 このコード例は、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
注釈
構成ファイルの セクションでは profile 、ユーザー プロファイルのスキーマを指定します。 実行時に、ASP.NET コンパイル システムは、 セクションで指定された情報をprofile使用して、 からProfileBase派生した というProfileCommonクラスを生成します。
ProfileCommonクラス定義は、構成ファイルの セクションのpropertiesサブセクションで定義されているprofileプロパティに基づいています。 このクラスのインスタンスはユーザー プロファイルごとに作成され、 プロパティを使用してコード内の個々のプロファイル値に Profile アクセスできます。 プロファイル プロパティの詳細については、「 ASP.NET プロファイル プロパティの概要」を参照してください。 ASP.NET 2.0 に追加されたプロファイル機能の詳細については、「 ASP.NET プロファイル プロパティの概要」を参照してください。
コンストラクター
| ProfilePropertySettingsCollection() |
ProfilePropertySettingsCollection クラスの新しいインスタンスを作成します。 |
プロパティ
メソッド
明示的なインターフェイスの実装
| ICollection.CopyTo(Array, Int32) |
ConfigurationElementCollection を配列にコピーします。 (継承元 ConfigurationElementCollection) |
拡張メソッド
| Cast<TResult>(IEnumerable) |
IEnumerable の要素を、指定した型にキャストします。 |
| OfType<TResult>(IEnumerable) |
指定された型に基づいて IEnumerable の要素をフィルター処理します。 |
| AsParallel(IEnumerable) |
クエリの並列化を有効にします。 |
| AsQueryable(IEnumerable) |
IEnumerable を IQueryable に変換します。 |