User.Email Property

Gets or sets a value that specifies the e-mail address of the user.

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

Syntax

'Declaration
<RemoteAttribute> _
Public Property Email As String
    Get
    Set
'Usage
Dim instance As User
Dim value As String

value = instance.Email

instance.Email = value
[RemoteAttribute]
public string Email { get; set; }

Property Value

Type: System.String
Returns a String instance representing the e-mail address of the user.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

The property is read when either the user object was not successfully initialized or the user could not be found. Error code: -1. The property is set when either the user object was not successfully initialized or the user could not be found. Error code: -1.

Remarks

It must not be a null reference (Nothing in Visual Basic).

Its length must be equal to or less than 255.

See Also

Reference

User Class

User Members

Microsoft.SharePoint.Client Namespace