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クラスを使用すると、AJAX 機能をprofileService
使用するアプリケーションの構成セクションの要素 ASP.NET プログラムでアクセスおよび変更できます。
プロファイル サービスは、現在の要求に関連付けられているユーザー ID のプロファイル プロパティを取得および設定するために使用されます。 これは、プロファイル サービスが認証されたユーザーに対して機能することを意味します。 また、匿名 ID 機能が構成ファイルで有効 (または使用可能) になっている場合は、匿名ユーザーにも機能します。
コンストラクター
ScriptingProfileServiceSection() |
ScriptingProfileServiceSection クラスの新しいインスタンスを初期化します。 |