다음을 통해 공유


ProfileService 클래스

정의

웹 서비스를 통해 ASP.NET 사용자 프로필에 액세스할 수 있게 해 줍니다.

public ref class ProfileService
[System.ServiceModel.Activation.AspNetCompatibilityRequirements(RequirementsMode=System.ServiceModel.Activation.AspNetCompatibilityRequirementsMode.Required)]
[System.ServiceModel.ServiceBehavior(ConcurrencyMode=System.ServiceModel.ConcurrencyMode.Multiple, InstanceContextMode=System.ServiceModel.InstanceContextMode.Single, Namespace="http://asp.net/ApplicationServices/v200")]
[System.ServiceModel.ServiceContract(Namespace="http://asp.net/ApplicationServices/v200")]
[System.ServiceModel.ServiceKnownType("GetKnownTypes", typeof(System.Web.ApplicationServices.KnownTypesProvider))]
public class ProfileService
[<System.ServiceModel.Activation.AspNetCompatibilityRequirements(RequirementsMode=System.ServiceModel.Activation.AspNetCompatibilityRequirementsMode.Required)>]
[<System.ServiceModel.ServiceBehavior(ConcurrencyMode=System.ServiceModel.ConcurrencyMode.Multiple, InstanceContextMode=System.ServiceModel.InstanceContextMode.Single, Namespace="http://asp.net/ApplicationServices/v200")>]
[<System.ServiceModel.ServiceContract(Namespace="http://asp.net/ApplicationServices/v200")>]
[<System.ServiceModel.ServiceKnownType("GetKnownTypes", typeof(System.Web.ApplicationServices.KnownTypesProvider))>]
type ProfileService = class
Public Class ProfileService
상속
ProfileService
특성

설명

ProfileService 클래스 가져오고 Windows Communication Foundation (WCF) 서비스를 통해 사용자의 프로필 속성을 설정할 수 있습니다. 프로필 속성을 통해 사용자에 대 한 사용자 지정 정보를 유지할 수 있습니다. 프로필 속성에 대 한 자세한 내용은 ASP.NET Profile Properties Overview합니다.

ProfileService 클래스는 WCF 서비스를 통해서만 액세스 해야 하는 다음 메서드를 포함 합니다.

이러한 메서드를 호출 하려면 웹 서버에서 프로필 서비스를 사용 하도록 설정 하며 그런 다음 웹 서비스에 WCF 호환 클라이언트 애플리케이션을 연결 합니다. 프로필 서비스를 구성 하는 방법에 대 한 정보를 참조 하세요 방법: WCF 프로필 서비스를 활성화합니다.

ValidatingProperties 사용자의 프로필 속성이 설정 될 때 이벤트가 발생 합니다. 에 대 한 이벤트 처리기를 만들 수 있습니다는 ValidatingProperties 이벤트 속성 값의 유효성을 검사 하거나 해당 값을 동적으로 변경 합니다.

콘솔 애플리케이션에서 WCF 프로필 서비스를 사용 하는 방법의 예제를 참조 하세요 연습: ASP.NET 애플리케이션 서비스를 사용 하 여입니다.

생성자

ProfileService()

ProfileService 클래스의 새 인스턴스를 초기화합니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetAllPropertiesForCurrentUser(Boolean)

현재 사용자의 프로필 서비스에서 사용할 수 있는 모든 프로필 속성과 값을 검색합니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetPropertiesForCurrentUser(IEnumerable<String>, Boolean)

현재 사용자에 대한 지정된 프로필 속성과 값을 검색합니다.

GetPropertiesMetadata()

프로필 서비스를 통해 사용할 수 있는 프로필 속성에 대한 정보를 검색합니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
SetPropertiesForCurrentUser(IDictionary<String,Object>, Boolean)

사용자 프로필에서 지정된 속성의 값을 설정합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

이벤트

ValidatingProperties

사용자의 프로필 속성이 설정될 때 발생합니다.

적용 대상