ScriptingProfileServiceSection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
프로필 서비스 설정에 대한 구성 섹션을 나타냅니다. 이 클래스는 상속될 수 없습니다.
public ref class ScriptingProfileServiceSection sealed : System::Configuration::ConfigurationSection
public sealed class ScriptingProfileServiceSection : System.Configuration.ConfigurationSection
type ScriptingProfileServiceSection = class
inherit ConfigurationSection
Public NotInheritable Class ScriptingProfileServiceSection
Inherits ConfigurationSection
- 상속
예제
다음 예제에서는 선언적으로 속성의 값을 지정 하는 방법의 ScriptingProfileServiceSection 구성 파일에서 클래스입니다.
<system.web.extensions>
<scripting>
<webServices>
<profileService enabled="true"
readAccessProperties="FirstName,LastName"
writeAccessProperties="FirstName,LastName" />
</webServices>
</scripting>
</system.web.extensions>
다음 예제에서는 액세스 하는 방법을 보여 줍니다는 ScriptingProfileServiceSection 프로그래밍 방식으로 섹션입니다.
// Get the Web application configuration.
System.Configuration.Configuration configuration =
WebConfigurationManager.OpenWebConfiguration("/aspnetTest");
// Get the external Web services section.
ScriptingWebServicesSectionGroup webServicesSection =
(ScriptingWebServicesSectionGroup)configuration.GetSectionGroup(
"system.web.extensions/scripting/webServices");
// Get the profile service section.
ScriptingProfileServiceSection profileSection =
webServicesSection.ProfileService;
' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration("/aspnetTest")
' Get the external Web services section.
Dim webServicesSection As ScriptingWebServicesSectionGroup = _
CType(configuration.GetSectionGroup( _
"system.web.extensions/scripting/webServices"), ScriptingWebServicesSectionGroup)
' Get the profile service section.
Dim profileSection _
As ScriptingProfileServiceSection = _
webServicesSection.ProfileService
설명
합니다 ScriptingProfileServiceSection 클래스를 사용 하면 프로그래밍 방식으로 액세스 하 고 수정할 수 있습니다는 profileService
AJAX 기능을 사용 하는 ASP.NET 애플리케이션에 대 한 구성 섹션의 요소입니다.
프로필 서비스 요청과 연관 된 사용자 id에 대 한 프로필 속성 가져오기 및 설정 됩니다. 이 프로필 서비스를 인증 된 사용자에 대 한 작동 한다는 것을 의미 합니다. 이 경우에 작동 익명 사용자에 대 한 익명 id 기능을 사용 하도록 설정 (또는 사용 가능한) 구성 파일에 있습니다.
생성자
ScriptingProfileServiceSection() |
ScriptingProfileServiceSection 클래스의 새 인스턴스를 초기화합니다. |