SPUser 成员

Represents a user in Microsoft SharePoint Foundation.

SPUser 类型公开以下成员。

属性

  名称 说明
公共属性 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.
公共属性 Email Gets or sets the e-mail address of the user. (Read-only in 沙盒解决方案.)
公共属性 Groups Gets the collection of groups of which the user is a member.
公共属性 ID Gets the member ID for the user. (覆盖 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. (覆盖 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. (覆盖 SPPrincipal.LoginName。)
公共属性 Name Gets or sets the display name of the user. (覆盖 SPPrincipal.Name。)
公共属性 Notes Gets or sets notes for the user.
公共属性 OwnedGroups Gets the collection of groups that the user owns.
公共属性 ParentWeb 获取父 Web 站点的主体。 (从 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 已过时。获取与用户关联的角色的集合。 (从 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.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护的方法 Finalize (从 Object 继承。)
公共方法 GetBinaryId Returns the system ID of the user in binary format.
受保护的方法 GetField 仅供内部使用。 (从 SPPrincipal 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护的方法 InitMember Initializes the metadata of the user represented by this object. (覆盖 SPPrincipal.InitMember()。)
受保护的方法 MemberwiseClone (从 Object 继承。)
受保护的方法 SetField 设置用户或组的域。 (从 SPPrincipal 继承。)
公共方法 ToString Returns the user name of the user. (覆盖 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.

页首

  名称 说明
受保护的域 m_arrMembersData 将成员数据存储为一个二维数组。 (从 SPPrincipal 继承。)
受保护的域 m_bDataInitialized 包含一个布尔值,该值指示是否已初始化的数据。 (从 SPPrincipal 继承。)
受保护的域 m_index 当前成员m_arrMembersData数组中包含的索引。 (从 SPPrincipal 继承。)
受保护的域 m_web 存储在 Web 站点对象。 (从 SPPrincipal 继承。)

页首

另请参阅

引用

SPUser 类

Microsoft.SharePoint 命名空间