SPUser members
Represents a user in Microsoft SharePoint Foundation.
The SPUser type exposes the following members.
Properties
Name | Description | |
---|---|---|
Alerts | Gets the collection of alerts the user has created. | |
AllowBrowseUserInfo | Gets or sets a value that indicates whether the user can obtain information about the Web site’s users. | |
Gets or sets the e-mail address of the user. (Read-only in sandboxed solutions.) | ||
Groups | Gets the collection of groups of which the user is a member. | |
ID | Gets the member ID for the user. (Overrides SPPrincipal.ID.) | |
IsApplicationPrincipal | Gets a value that indicates whether the SPUser object represents an application principal. | |
IsDomainGroup | Gets a Boolean value that indicates whether the user is a domain group. | |
IsHiddenInUI | Gets a value that indicates whether this user should be hidden in the UI. (Overrides SPPrincipal.IsHiddenInUI.) | |
IsShareByEmailGuestUser | Gets a value that indicates whether this user is shared by email guest user. | |
IsSiteAdmin | Gets or sets a Boolean value that specifies whether the user is a site collection administrator. | |
IsSiteAuditor | Gets a Boolean value that indicates whether the user is a site collection auditor. | |
IsUserSettingsSyncedWithProvider | Gets a value that indicates whether User Settings has been synced with External Settings Provider. | |
LanguageSettings | Gets the SPLanguageSettings object that represents the user's language preferences. | |
LoginName | Gets the user name of the user. (Overrides SPPrincipal.LoginName.) | |
Name | Gets or sets the display name of the user. (Overrides SPPrincipal.Name.) | |
Notes | Gets or sets notes for the user. | |
OwnedGroups | Gets the collection of groups that the user owns. | |
ParentWeb | Gets the parent Web site for the principal. (Inherited from SPPrincipal.) | |
RawSid | Gets the system ID of the user in binary format. | |
RegionalSettings | Gets or sets the regional settings associated with the user. | |
RequireRequestToken | Gets or sets a value that indicates whether the SPUser object requires a request token. | |
Roles | Obsolete. Gets the collection of roles associated with the principal. (Inherited from SPPrincipal.) | |
Sid | Gets the unique security ID for the network account of the user. | |
SystemUserKey | Gets the configuration-specific user key. | |
UserId | Gets the information of the user that contains the user's name identifier and the issuer of the user's name identifier. | |
UserToken | Gets the user token that identifies the authentication process applied to the user. | |
Xml | Gets the XML representation of the user. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetBinaryId | Returns the system ID of the user in binary format. | |
GetField | Reserved for internal use. (Inherited from SPPrincipal.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
InitMember | Initializes the metadata of the user represented by this object. (Overrides SPPrincipal.InitMember().) | |
MemberwiseClone | (Inherited from Object.) | |
SetField | Sets the field for the user or group. (Inherited from SPPrincipal.) | |
ToString | Returns the user name of the user. (Overrides Object.ToString().) | |
Update | Updates the database with changes made to the properties of the user object. | |
UpdateUserSettings | Updates a user's settings from external SPRegionalSettings and SPLanguageSettings objects. |
Top
Fields
Name | Description | |
---|---|---|
m_arrMembersData | Stores the member data as a two-dimensional array. (Inherited from SPPrincipal.) | |
m_bDataInitialized | Contains a Boolean value indicating whether the data is initialized. (Inherited from SPPrincipal.) | |
m_index | Contains the index into the m_arrMembersData array for the current member. (Inherited from SPPrincipal.) | |
m_web | Stores the Web site object. (Inherited from SPPrincipal.) |
Top