SpsSsoProvider.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 中)

语法

声明
Public Function GetCurrentUser As String
用法
Dim instance As SpsSsoProvider
Dim returnValue As String

returnValue = instance.GetCurrentUser
public 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).

另请参阅

参考

SpsSsoProvider 类
SpsSsoProvider 成员
Microsoft.SharePoint.Portal.SingleSignon 命名空间