Partager via


ISsoProvider.GetCurrentUser, méthode (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).

Espace de noms : Microsoft.SharePoint.Portal.SingleSignon
Assembly : Microsoft.SharePoint.Portal.SingleSignon (dans microsoft.sharepoint.portal.singlesignon.dll)

Syntaxe

'Déclaration
Function GetCurrentUser As String
'Utilisation
Dim instance As ISsoProvider
Dim returnValue As String

returnValue = instance.GetCurrentUser
string GetCurrentUser ()

Valeur de retour

The current user from the current HTTP request. If the request is authenticated with Windows authentication, this returns a UPN (user principal name).

Exemple

For an example, see Procédure pas à pas : implémentation d'un fournisseur d'authentification unique enfichable.

Voir aussi

Référence

ISsoProvider, interface
Membres ISsoProvider
Microsoft.SharePoint.Portal.SingleSignon, espace de noms