SPListItem members
Represents an item or row in a list.
The SPListItem type exposes the following members.
Properties
Name | Description | |
---|---|---|
AllRolesForCurrentUser | Gets a full list of role definitions on the object to which the current user belongs on this scope. (Inherited from SPSecurableObject.) | |
Attachments | Gets the collection of attachments that are associated with the item. | |
Audit | Gets the audit log that is associated with the item. | |
BackwardLinks | Returns the collection of links to the item. | |
ClientFormItemData | Gets a dictionary containing item properties used in CSR forms. (Overrides SPItem.ClientFormItemData.) | |
ContentType | Gets the content type that is associated with the item. | |
ContentTypeId | Gets the identifier of the content type that is associated with this item. | |
CopyDestinations | Gets a list of URLs to which the item can be copied through the SharePoint Foundation user interface. | |
CopyFieldMask | Gets a field mask for a copied item. | |
CopySource | Gets the URL of the source item from which this item was copied, if the item results from a copy operation. | |
DisplayName | Gets the display name of the item. | |
EffectiveBasePermissions | Gets the current user’s effective base permissions on the item, including group membership and policies. (Overrides SPItem.EffectiveBasePermissions.) | |
EffectiveBasePermissionsForUI | Gets the effective base permissions for the current user, as they should be displayed in UI. | |
Fields | Gets or sets the collection of all fields in the parent of the item. (Overrides SPItem.Fields.) | |
File | Gets the file that is represented by the item from a document library. | |
FileSystemObjectType | Gets or sets the file system object type for the item. | |
FirstUniqueAncestor | Obsolete. Use the FirstUniqueAncestorSecurableObject property instead. (Inherited from SPSecurableObject.) | |
FirstUniqueAncestorSecurableObject | Retrieves the first unique ancestor if it has unique role assignments otherwise returns the first parent object (folder, list, or Web site) that has unique role assignments. (Overrides SPItem.FirstUniqueAncestorSecurableObject.) | |
Folder | Gets a folder object that is associated with a folder item. | |
ForwardLinks | Gets a collection of hyperlinks that are associated with the item; for example, the hyperlinks in a URL field or rich text field. | |
HasPublishedVersion | Gets a Boolean value that specifies whether a published version of the item exists. | |
HasUniqueRoleAssignments | Gets a Boolean value that specifies whether the item has unique security or inherits its role assignments from a parent object. (Overrides SPSecurableObject.HasUniqueRoleAssignments.) | |
IconOverlay | Gets or sets the URL to an overlay icon for this item. | |
ID | Gets the integer that identifies the item. (Overrides SPItem.ID.) | |
Item[Guid] | Gets or sets the value that is contained by the field identified by the specified GUID. | |
Item[Int32] | Gets or sets the value that is contained by the field at the specified index in the field collection of the parent list. (Overrides SPItem.Item[Int32].) | |
Item[String] | Gets or sets a field value in the item based on the field’s title, internal name, or static name. (Overrides SPItem.Item[String].) | |
Level | Gets the level of publication for the item. | |
ListItems | Gets the parent collection of list item objects to which the item belongs. | |
MissingRequiredFields | Gets a Boolean value that specifies whether required fields are missing from the item's properties. | |
ModerationInformation | Gets Content Approval information for the item, including the status and comment. | |
Name | Gets the name of the item. | |
ParentList | Gets the list that includes the list item. | |
ProgId | The Program identifier for this item. | |
Properties | Gets metadata for the item. | |
RecurrenceID | Returns the identifier (ID) of an instance of a recurrent item. | |
ReusableAcl | Gets an opaque object that represents the raw access control list (ACL) information for the item. (Overrides SPItem.ReusableAcl.) | |
RoleAssignments | Gets the role assignments for this securable object. (Inherited from SPSecurableObject.) | |
ServerRedirected | Gets a Boolean value that indicates whether users who do not have access to view the item, or who do not have the appropriate client application installed, are redirected to server-side rendering of the item when they click a link to view it. | |
ServerRedirectedPreviewUrl | Gets the URL for the thumbnail of a document in the browser, if that feature exists. | |
SortType | Gets or sets the type of this item when sorting within a view. | |
Tasks | Gets the collection of workflow tasks for the item. | |
Title | Gets the title of the item. | |
UniqueId | Gets the GUID that uniquely identifies the item for the internal database. | |
Url | Gets the site-relative URL of the item. | |
Versions | Gets the collection of item version objects that represent the versions of the item. | |
Web | Gets the Web site that is associated with the list item. | |
Workflows | Gets the collection of the workflow objects that represent instances of the item workflows that are currently running, but does not get the workflow associations. | |
Xml | Gets the data that is contained in the list item in XMLDATA format. |
Top
Methods
Name | Description | |
---|---|---|
BreakRoleInheritance(Boolean) | Creates unique role assignments for the object and optionally copies role assignments from the parent. (Inherited from SPSecurableObject.) | |
BreakRoleInheritance(Boolean, Boolean) | Creates unique role assignments for the list item, optionally copies role assignments from the parent, and optionally clears unique role assignments from descendants. (Overrides SPSecurableObject.BreakRoleInheritance(Boolean, Boolean).) | |
CheckPermissions | Determines whether the current user has a specified set of permissions. (Inherited from SPSecurableObject.) | |
Copy(String, String) | Copies the specified version of the item to the specified destination. | |
Copy(String, String, Hashtable, []) | Copies the specified item and its properties as a stream to the specified destination. | |
CopyFrom(String) | Overwrites the current item with the specified version of the item. | |
CopyFrom(String, Hashtable, []) | Overwrites the current item with the specified version of the item and its properties as a stream. | |
CopyTo | Copies the item to the specified destination. | |
Delete | Deletes the item. (Overrides SPItem.Delete().) | |
DoesUserHavePermissions(SPBasePermissions) | Indicates whether the current user has a specified set of permissions. (Inherited from SPSecurableObject.) | |
DoesUserHavePermissions(SPUser, SPBasePermissions) | Indicates whether the specified user has the specified permissions on an item. | |
DoesUserHavePermissionsForUI | Checks whether the specified user has the specified permissions on an item. | |
EnsureWorkflowInformation() | Checks the item's workflow information and, if necessary, updates it to ensure that the most current information is used. | |
EnsureWorkflowInformation(Boolean, Boolean) | Checks the item's workflow information and, if necessary, updates it to ensure that the most current information is used. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetFormattedValue | Returns the specified field value, including formatting. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetUserEffectivePermissionInfo | Gets detailed information about the effective permissions that a specified user has on the list item and the role assignments related to this user at this scope. (Overrides SPItem.GetUserEffectivePermissionInfo(String).) | |
GetUserEffectivePermissions | Gets the effective permissions that a specified user has on the list item. (Overrides SPItem.GetUserEffectivePermissions(String).) | |
GetWOPIFrameUrl | Gets the full URL to the SharePoint frame page that initiates the SPWOPIActionobject with the WOPI application associated with the list item. | |
MemberwiseClone | (Inherited from Object.) | |
Recycle | Deletes the item from the content database and returns a globally unique identifier (GUID) for the transaction. | |
ReplaceLink | Replaces all instances of a specified link in the list item with a new link. | |
ResetRoleInheritance | Removes the local role assignments so that the list item, and all its descendant objects, re-inherit role assignments from the parent object. (Overrides SPSecurableObject.ResetRoleInheritance().) | |
SystemUpdate() | Updates the database with changes made to the list item without changing the Modified or Modified By fields. | |
SystemUpdate(Boolean) | Updates the database with changes that are made to the list item without changing the Modified or Modified By fields, or optionally, the item version. | |
ToString | (Inherited from Object.) | |
UnlinkFromCopySource | Clears the source item URL if the item results from a copy operation. | |
Update | Updates the database with changes that are made to the list item. (Overrides SPItem.Update().) | |
UpdateOverwriteVersion | Updates the item by creating a new minor version of the item. |
Top
Fields
Name | Description | |
---|---|---|
m_Fields | Stores the field objects associated with the item. (Inherited from SPItem.) |
Top