ListItem 成员

包括受保护的成员
包括继承的成员

Represents an item or row in a list.

ListItem 类型公开以下成员。

构造函数

  名称 说明
公共方法 ListItem Initializes a new instance of the ListItem object.

页首

属性

  名称 说明
公共属性 AttachmentFiles Specifies the collection of attachments that are associated with the list item.
公共属性 Client_Title
公共属性 ContentType Gets a value that specifies the content type of the list item.
公共属性 Context Returns the context that is associated with the client object. (从 ClientObject 继承。)
公共属性 DisplayName Gets a value that specifies the display name of the list item.
公共属性 EffectiveBasePermissions Gets a value that specifies the effective permissions on the list item that are assigned to the current user.
公共属性 EffectiveBasePermissionsForUI Gets the effective base permissions for the current user, as they should be displayed in UI.
公共属性 FieldValues
公共属性 FieldValuesAsHtml Gets the values for the list item as HTML.
公共属性 FieldValuesAsText Gets the list item’s field values as a collection of string values.
公共属性 FieldValuesForEdit Gets the formatted values to be displayed in an edit form.
公共属性 File Gets the file that is represented by the item from a document library.
公共属性 FileSystemObjectType Gets a value that specifies whether the list item is a file or a list folder.
公共属性 FirstUniqueAncestorSecurableObject Gets the object where role assignments for this object are defined. (从 SecurableObject 继承。)
公共属性 Folder Gets a folder object that is associated with a folder item.
公共属性 GetDlpPolicyTip
公共属性 HasUniqueRoleAssignments Gets a value that specifies whether the role assignments are uniquely defined for this securable object or inherited from a parent securable object. (从 SecurableObject 继承。)
公共属性 Id Gets a value that specifies the list item identifier.
公共属性 Item
受保护的属性 ObjectData Gets the object data for the current client object. (从 ClientObject 继承。)
公共属性 ObjectVersion Gets a string that indicates the version of the current client object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共属性 ParentList Gets the parent list that contains the list item.
公共属性 Path Tracks how a client object is created in the ClientRuntimeContext class so that the object can be recreated on the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共属性 RoleAssignments Gets the role assignments for the securable object. (从 SecurableObject 继承。)
公共属性 ServerObjectIsNull Gets the server object and returns null if the server object is null. (从 ClientObject 继承。)
公共属性 Tag Gets or sets data that is associated with the client object. (从 ClientObject 继承。)
公共属性 TypedObject Gets the object with the correct type information returned from the server. (从 ClientObject 继承。)

页首

方法

  名称 说明
公共方法 AddHashTag
公共方法 BreakRoleInheritance Creates unique role assignments for the securable object. (从 SecurableObject 继承。)
受保护的方法 CheckUninitializedProperty Checks to determine whether the specified value type property of a ClientObject has been initialized. (从 ClientObject 继承。)
公共方法 CustomFromJson Returns a Boolean value that indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 DeleteObject Deletes the list item.
公共方法 FromJson Indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 GetChanges
公共方法 GetUserEffectivePermissions Gets the effective permissions that a specified user has on the list item.
公共方法 GetWOPIFrameUrl Gets the full URL to the SharePoint frame page that initiates the SPWOPIAction object with the WOPI application associated with the list item.
受保护的方法 InitNonPropertyFieldFromJson (覆盖 ClientObject.InitNonPropertyFieldFromJson(String, JsonReader)。)
受保护的方法 InitOnePropertyFromJson (覆盖 SecurableObject.InitOnePropertyFromJson(String, JsonReader)。)
公共方法 IsObjectPropertyInstantiated Indicates whether the specified property of the client object is instantiated. (从 ClientObject 继承。)
公共方法 IsPropertyAvailable Returns a Boolean value that indicates whether the specified scalar property has been retrieved or set. (从 ClientObject 继承。)
受保护的方法 LoadExpandoFields (覆盖 ClientObject.LoadExpandoFields()。)
公共方法 OverridePolicyTip
公共方法 ParseAndSetFieldValue Sets the value of the field for the list item based on an implementation specific transformation of the value.
公共方法 Recycle Moves the list item to the Recycle Bin and returns the identifier of the new Recycle Bin item.
公共方法 RefreshLoad (覆盖 ClientObject.RefreshLoad()。)
受保护的方法 RemoveFromParentCollection Removes the current client object from the parent client object collection. (从 ClientObject 继承。)
公共方法 ResetRoleInheritance When implemented in a derived class, removes local role assignments so that role assignments, for all descendant objects, are re-inherited from the parent object. (从 SecurableObject 继承。)
公共方法 Retrieve() Retrieves all scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 Retrieve([]) Retrieves the specified scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 ToString (从 Object 继承。)
公共方法 Update Commits changed properties of the list item.
受保护的方法 UpdateClientObjectPropertyType Updates the client object property's value to have correct type by using the type information returned from the server. (从 ClientObject 继承。)
公共方法 ValidateUpdateListItem

页首

另请参阅

引用

ListItem 类

Microsoft.SharePoint.Client 命名空间