ScriptManager.AuthenticationService 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
AuthenticationServiceManager获取与当前ScriptManager实例关联的对象。
public:
property System::Web::UI::AuthenticationServiceManager ^ AuthenticationService { System::Web::UI::AuthenticationServiceManager ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.AuthenticationServiceManager AuthenticationService { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.AuthenticationService : System.Web.UI.AuthenticationServiceManager
Public ReadOnly Property AuthenticationService As AuthenticationServiceManager
属性值
当前AuthenticationServiceManagerScriptManager实例的对象。
- 属性
注解
AuthenticationServiceManager此属性返回的对象表示向页面注册的身份验证服务。 身份验证服务可以在控件或关联的ScriptManager控件中定义ScriptManagerProxy。
可以使用 ASP.NET 身份验证服务或使用自定义身份验证服务。 可以通过在页面上的元素中包含AuthenticationService元素asp:ScriptManager来添加标记中的自定义服务,如以下示例所示。
<asp:ScriptManager ID="SM1" runat="server">
<AuthenticationService Path="MyAuthenticationService.asmx" />
</asp:ScriptManager>
还可以以编程方式配置 AuthenticationServiceManager 对象。 服务在页面ScriptManager生命周期阶段向控件注册PreRender。