Share via


SPPolicy members

Represents the policy that is assigned to a user or external group.

The SPPolicy type exposes the following members.

Constructors

  Name Description
Public method SPPolicy Initializes a new instance of the SPPolicy class.

Top

Properties

  Name Description
Public property DisplayName Gets or sets the user or group display name for the policy.
Public property IsSystemUser Gets or sets a Boolean value that specifies whether the user identified by the policy is visible only as a system account within the SharePoint Foundation user interface and in the UserInfo database table.
Public property PolicyRoleBindings Gets the collection of policy roles that are bound to the policy.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)
Public property UserName Gets the logon name of the user or external group that is associated with the policy.

Top

Methods

  Name Description
Public method Equals Overwrite the equals so that when the object gets compared during restore we get a proper comparison operator. (Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns the hashcode of the policy. (Overrides Object.GetHashCode().)
Public method GetObjectData Gets the serialized state of the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called immediately after the base class is deserialized from the file system cache or the database to do additional work. (Overrides SPAutoSerializingObject.OnDeserialization().)
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Top

See also

Reference

SPPolicy class

Microsoft.SharePoint.Administration namespace