Partager via


SPFieldUser Class

The SPFieldUser class represents a user field.

System.Object

   Microsoft.SharePoint.SPField

      Microsoft.SharePoint.SPFieldLookup

        Microsoft.SharePoint.SPFieldUser

Public Properties

The following table shows the public properties of the SPFieldUser class, the data type of each property, and a brief description of each.

Name Data Type Description
AllowDisplay Boolean Gets or sets a Boolean value that specifies whether to display the name of the user who created or last modified the field.
Presence Boolean Gets or sets a Boolean value that specifies whether presence is enabled on the field to display user names and e-mail addresses.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Remarks

Setting properties of the SPFieldUser class requires that the Update method be called for changes to take effect in the database.

Requirements

Namespace: Microsoft.SharePoint

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security