SPUtility.GetCurrentUserEmailAddresses Method

Returns a string containing the email address of the current user.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Shared Function GetCurrentUserEmailAddresses As String
'Usage
Dim returnValue As String

returnValue = SPUtility.GetCurrentUserEmailAddresses()
[ClientCallableAttribute]
public static string GetCurrentUserEmailAddresses()

Return Value

Type: System.String
The value of the Email property of the SPUser object that represents the current user.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace