Share via


User.Email property

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

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property Email As String
    Get
    Set
'Usage
Dim instance As User
Dim value As String

value = instance.Email

instance.Email = value
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