Utility.GetCurrentUserEmailAddresses Method

Returns the e-mail address and mobile e-mail address of the current user. When no mobile e-mail address is specified, returns only the e-mail address. Otherwise, returns the e-mail address and mobile e-mail address separated by a semi-colon.

Namespace:  Microsoft.SharePoint.Client.Utilities
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Shared Function GetCurrentUserEmailAddresses ( _
    Context As ClientRuntimeContext _
) As ClientResult(Of String)
'Usage
Dim Context As ClientRuntimeContext
Dim returnValue As ClientResult(Of String)

returnValue = Utility.GetCurrentUserEmailAddresses(Context)
[RemoteAttribute]
public static ClientResult<string> GetCurrentUserEmailAddresses(
    ClientRuntimeContext Context
)

Parameters

Return Value

Type: Microsoft.SharePoint.Client.ClientResult<String>
Returns a ClientResult<T> instance representing the e-mail address and mobile e-mail address of the current user. When no mobile e-mail address is specified, returns only the e-mail address. Otherwise, returns the e-mail address and mobile e-mail address separated by a semi-colon.

See Also

Reference

Utility Class

Utility Members

Microsoft.SharePoint.Client.Utilities Namespace