ISsoProvider.GetCurrentUser 方法 (Microsoft.SharePoint.Portal.SingleSignon)
Gets the current user from the current HTTP request. If the request is authenticated with Windows authentication, this returns a UPN (user principal name).
命名空间: Microsoft.SharePoint.Portal.SingleSignon
程序集: Microsoft.SharePoint.Portal.SingleSignon (在 microsoft.sharepoint.portal.singlesignon.dll 中)
语法
声明
Function GetCurrentUser As String
用法
Dim instance As ISsoProvider
Dim returnValue As String
returnValue = instance.GetCurrentUser
string GetCurrentUser ()
返回值
The current user from the current HTTP request. If the request is authenticated with Windows authentication, this returns a UPN (user principal name).
示例
For an example, see 演练:实现可插入 SSO 提供程序.
另请参阅
参考
ISsoProvider 接口
ISsoProvider 成员
Microsoft.SharePoint.Portal.SingleSignon 命名空间