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
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
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)
public static ClientResult<string> GetCurrentUserEmailAddresses(
ClientRuntimeContext context
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
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.