ProfileGroupSettingsCollection クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ProfileGroupSettings オブジェクトのセットを格納します。
public ref class ProfileGroupSettingsCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfileGroupSettings), AddItemName="group")]
public sealed class ProfileGroupSettingsCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.ProfileGroupSettings), AddItemName="group")>]
type ProfileGroupSettingsCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class ProfileGroupSettingsCollection
Inherits ConfigurationElementCollection
- 継承
- 属性
例
次の構成ファイルの抜粋は、ProfileGroupSettingsCollection構成ファイル セクションの<group>要素の<properties>要素として、<profile>のいくつかのプロパティの値を宣言によって指定する方法を示しています。
<system.web>
<profile enabled = "true" defaultProvider="AspNetSqlProfileProvider">
<providers>
<add name="AspNetSqlProfileProvider"
type="System.Web.Profile.SqlProfileProvider "
connectionStringName="LocalSqlServer"
applicationName="/"
description="Stores and retrieves profile data from the
local Microsoft SQL Server database" />
</providers>
<properties>
<group name = "SiteColors" >
<add name = "BackGround"/>
<add name = "SideBar"/>
<add name = "ForeGroundText"/>
<add name = "ForeGroundBorders"/>
</group>
<group name="Forums">
<add name = "HasAvatar" type="bool" provider="Forums"/>
<add name = "LastLogin" type="DateTime" provider="Forums"/>
<add name = "TotalPosts" type="int" provider="Forums"/>
</group>
</properties>
</profile>
</system.web>
注釈
ProfileGroupSettingsCollection クラスには、ProfileGroupSettings オブジェクトのコレクションが含まれており、それぞれにProfilePropertySettings オブジェクトのコレクションが含まれています。
ProfilePropertySettings クラスは、構成ファイルの <properties> セクションの <profile> サブセクションに追加された個々のプロパティの定義をプログラムで作成、アクセス、および変更する方法を提供します。
構成ファイルの <profile> セクションでは、ユーザー プロファイルのスキーマを指定します。 実行時に、ASP.NET コンパイル システムは、<profile> セクションで指定された情報を使用して、ProfileCommonから派生した ProfileBase というクラスを生成します。
ProfileCommon クラス定義は、構成ファイルの <properties> セクションの <profile> サブセクションで定義されているプロパティに基づいています。
プロファイルプロパティの詳細については、「プロファイルプロパティ の概要 ASP.NET 参照してください。 ASP.NET バージョン 2.0 に追加されたプロファイル機能の詳細については、「ASP.NET Profile Properties Overviewを参照してください。
コンストラクター
| 名前 | 説明 |
|---|---|
| ProfileGroupSettingsCollection() |
ProfileGroupSettingsCollection クラスの新しいインスタンスを初期化します。 |
プロパティ
メソッド
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| ICollection.CopyTo(Array, Int32) |
ConfigurationElementCollection を配列にコピーします。 (継承元 ConfigurationElementCollection) |
拡張メソッド
| 名前 | 説明 |
|---|---|
| AsParallel(IEnumerable) |
クエリの並列化を有効にします。 |
| AsQueryable(IEnumerable) |
IEnumerable を IQueryableに変換します。 |
| Cast<TResult>(IEnumerable) |
IEnumerable の要素を指定した型にキャストします。 |
| OfType<TResult>(IEnumerable) |
指定した型に基づいて、IEnumerable の要素をフィルター処理します。 |