다음을 통해 공유


Sys.Services.ProfileGroup 클래스

업데이트: 2007년 11월

그룹을 정의합니다.

네임스페이스:Sys.Services

상속: 없음

var profileGroup = Sys.Services.ProfileGroup(); 

멤버

이름

설명

Sys.Services.ProfileGroup 생성자

Sys.Services.ProfileGroup 클래스의 새 인스턴스를 초기화합니다.

설명

ProfileGroup 클래스는 Sys.Services.ProfileService 클래스의 properties 컬렉션에 요소의 형식을 그룹으로 정의합니다. 프로필 그룹 속성은 다음 ECMAScript(JavaScript) 예제와 같이 관련 그룹의 하위 속성으로 액세스됩니다.

var Street = 
    Sys.Services.ProfileService.properties.Address.Street;
var City = 
    Sys.Services.ProfileService.properties.Address.City;

다음 예제에서는 properties 컬렉션에 포함되는 JavaScript 속성 그룹을 만드는 방법을 보여 줍니다. 이 예제에서 Sys.Services.ProfileService.properties.Address의 형식은 ProfileGroup입니다.

Sys.Services.ProfileService.properties.Address = 
    new Sys.Services.ProfileGroup();
Sys.Services.ProfileService.properties.Address.Street = 
    "street name";
Sys.Services.ProfileService.properties.Address.City = 
    "city name";
Sys.Services.ProfileService.properties.Address.State = 
    "state name";

다음과 같은 구문을 사용하여 Web.config 파일에서 프로필 그룹을 정의할 수도 있습니다.

<system.web>
  <profile enabled="true">
    <properties>
      <group name="Address">
        <add name="Street" type="System.String" />
        <add name="City" type="System.String" />
        <add name="PostalCode" type="System.String" />
      </group>
    </properties>
  </profile>
<system.web>

참고 항목

개념

Sys.Services.AuthenticationService 클래스

Sys.Services.ProfileService 클래스