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 프로필 속성 개요 참조하세요.
생성자
| Name | Description |
|---|---|
| ProfileGroupSettingsCollection() |
ProfileGroupSettingsCollection 클래스의 새 인스턴스를 초기화합니다. |
속성
메서드
명시적 인터페이스 구현
| Name | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
배열에 ConfigurationElementCollection 복사합니다. (다음에서 상속됨 ConfigurationElementCollection) |
확장명 메서드
| Name | Description |
|---|---|
| AsParallel(IEnumerable) |
쿼리의 병렬 처리를 사용하도록 설정합니다. |
| AsQueryable(IEnumerable) |
IEnumerable IQueryable변환합니다. |
| Cast<TResult>(IEnumerable) |
IEnumerable 요소를 지정된 형식으로 캐스팅합니다. |
| OfType<TResult>(IEnumerable) |
지정된 형식에 따라 IEnumerable 요소를 필터링합니다. |