如何从非HealthServicePage页面调用Signout()? [英] How to call Signout() from a non-HealthServicePage page?

查看:63
本文介绍了如何从非HealthServicePage页面调用Signout()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序包含不同类型的页面。我想要一个带有"Signout"的主页。链接在它的顶部。但据我所知,此功能仅适用于基于HealthServicePage的页面。如何从非HealthServicePage页面调用此函数或其等效的

My application consists of different types of pages. I'd like to have a Masterpage with "Signout" link on the top of it. But as far as I sees this function is available only for HealthServicePage-based pages. How can I invoke this function or its equivalent from a non-HealthServicePage page?

推荐答案

请参阅我们在codeplex中的NonHealthServicePage应用程序( http://nonhealthservicepage.codeplex.com/ )了解如何在不继承HealthServicePage
页面的情况下编写HealthVault应用程序。

Please refer our NonHealthServicePage application in codeplex (http://nonhealthservicepage.codeplex.com/) to see how you can write HealthVault application's without inheriting from HealthServicePage page.

您可以编写包装器或直接调用SignOut的以下代码。

You can write a wrapper or directly invoke the below code for SignOut.

public void SignOut()

public void SignOut()

{

WebApplicationUtilities.SignOut(HttpContext.Current, ApplicationId);

}

希望这有帮助,

谢谢


这篇关于如何从非HealthServicePage页面调用Signout()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆