Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
Platform
Reference
Class Library
Classes
SPUser Class
Properties
 Email Property

  Switch on low bandwidth view
Email Property

The Email property of the SPUser class gets or sets the e-mail address of the user.

Property Value

A string that contains the e-mail address.

Remarks

To modify the e-mail address for a user by setting the value of the Email property, call the Update method to effect the changes in the database.

Example

The following code example modifies the e-mail address for a specified user object.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker