Share via


SPListItem members

Include protected members
Include inherited members

表示清單中的項目或資料列。

The SPListItem type exposes the following members.

Properties

  Name Description
Public property AllRolesForCurrentUser 取得目前的使用者所屬的物件上的角色定義的完整清單,對此範圍。 (Inherited from SPSecurableObject.)
Public property Attachments 取得與此項目相關聯的附件集合。
Public property Audit 取得與此項目相關聯的稽核記錄。
Public property BackwardLinks 會傳回連結的項目。
Public property ClientFormItemData 取得包含在 CSR 表單中使用的項目屬性的字典。 (Overrides SPItem.ClientFormItemData.)
Public property ContentType 取得與此項目相關聯的內容類型。
Public property ContentTypeId 取得與此項目相關聯的內容類型識別碼。
Public property CopyDestinations 透過SharePoint Foundation使用者介面中取得的 Url 可以複製之項目的清單。
Public property CopyFieldMask 取得欄位遮罩複製的項目。
Public property CopySource 如果從複製作業結果項目,請取得從其中複製此項目、 來源項目的 URL。
Public property DisplayName 取得顯示名稱的項目。
Public property EffectiveBasePermissions 取得目前使用者的有效的基本權限項目,包括群組成員資格和原則。 (Overrides SPItem.EffectiveBasePermissions.)
Public property EffectiveBasePermissionsForUI 取得目前使用者的有效基底權限,這些權限應該會在 UI 中顯示。
Public property Fields 取得或設定父項目中的所有欄位的集合。 (Overrides SPItem.Fields.)
Public property File 取得文件庫項目所代表的檔案。
Public property FileSystemObjectType 取得或設定檔案系統物件類型的項目。
Public property FirstUniqueAncestor Obsolete. 請改用 [ FirstUniqueAncestorSecurableObject ] 屬性。 (Inherited from SPSecurableObject.)
Public property FirstUniqueAncestorSecurableObject 如果已定義唯一的角色指派擷取第一個唯一上階否則會傳回第一個父物件 (資料夾、 清單或網站) 具有唯一的角色指派。 (Overrides SPItem.FirstUniqueAncestorSecurableObject.)
Public property Folder 取得資料夾項目相關聯的資料夾物件。
Public property ForwardLinks 取得與此項目 ; 相關聯的超連結的集合例如,或超連結 URL] 欄位中使用 rtf 文字] 欄位。
Public property HasPublishedVersion 取得 Boolean 值,以指定的項目已發佈的版本是否存在。
Public property HasUniqueRoleAssignments 取得 Boolean 值,指定項目是否具有唯一安全性,或其角色指派繼承自父物件。 (Overrides SPSecurableObject.HasUniqueRoleAssignments.)
Public property IconOverlay 取得或設定此項目覆疊圖示的 URL。
Public property ID 取得識別的項目的整數。 (Overrides SPItem.ID.)
Public property Item[Guid] 取得或設定所指定的 GUID 識別的欄位所包含的值。
Public property Item[Int32] 取得或設定值所含的上層清單的欄位集合中的指定索引處的欄位。 (Overrides SPItem.Item[Int32].)
Public property Item[String] 取得或設定根據此欄位的標題、 的內部名稱或靜態名稱項目中的欄位值。 (Overrides SPItem.Item[String].)
Public property Level 取得出版物的項目層的級。
Public property ListItems 取得父項的清單項目所屬的項目物件。
Public property MissingRequiredFields 取得 Boolean 值,以指定必要的欄位是否缺少此項目屬性。
Public property ModerationInformation 會取得內容核准的項目,包括 [狀態] 和 [註解的資訊。
Public property Name 取得項目的名稱。
Public property ParentList 取得包含清單項目清單。
Public property ProgId 這個項目的程式識別碼。
Public property Properties 取得中繼資料的項目。
Public property RecurrenceID 會傳回週期性項目的執行個體的識別碼 (ID)。
Public property ReusableAcl 取得代表項目的原始的存取控制清單 (ACL) 資訊不透明物件。 (Overrides SPItem.ReusableAcl.)
Public property RoleAssignments 取得這個可保護物件的角色指派。 (Inherited from SPSecurableObject.)
Public property ServerRedirected 取得 Boolean 值,指出是否者沒有權限,若要檢視的項目,或誰不需要安裝適當的用戶端應用程式的使用者會重新導向至項目的伺服器端轉譯當他們按一下連結,以檢視其。
Public property ServerRedirectedPreviewUrl 如果該功能存在,則您可以取得的瀏覽器] 中的文件縮圖 URL。
Public property SortType 取得或設定此項目類型的檢視中排序時。
Public property Tasks 取得之項目的工作流程工作的集合。
Public property Title 取得項目的標題。
Public property UniqueId 取得可以唯一識別項目以便內部資料庫的 GUID。
Public property Url 取得網站相對 URL 的項目。
Public property Versions 會取得代表項目的版本的項目版本物件的集合。
Public property Web 取得與清單項目相關聯的網站。
Public property Workflows 會取得代表目前正在執行,但無法取得工作流程關聯的項目工作流程執行個體的工作流程物件的集合。
Public property Xml 取得包含在清單中的項目 XMLDATA 格式中的資料。

Top

Methods

  Name Description
Public method BreakRoleInheritance(Boolean) 建立物件的唯一的角色指派,並選擇性地將角色指派複製從父代。 (Inherited from SPSecurableObject.)
Public method BreakRoleInheritance(Boolean, Boolean) 會建立唯一的角色指派的清單項目、 (選擇性) 將角色指派複製與其父系,選擇性地清除從下階的唯一角色指派。 (Overrides SPSecurableObject.BreakRoleInheritance(Boolean, Boolean).)
Public method CheckPermissions 判斷目前的使用者是否具有指定的使用權限集合。 (Inherited from SPSecurableObject.)
Public methodStatic member Copy(String, String) 將指定的版本的項目複製到指定的目的地。
Public methodStatic member Copy(String, String, Hashtable, []) 將指定的項目和其屬性當做資料複製到指定的目的地。
Public method CopyFrom(String) 使用指定的版本的項目會覆寫目前的項目。
Public method CopyFrom(String, Hashtable, []) 為資料流的項目和其屬性的指定版本與會覆寫目前的項目。
Public method CopyTo 項目複製到指定的目的地。
Public method Delete 刪除項目。 (Overrides SPItem.Delete().)
Public method DoesUserHavePermissions(SPBasePermissions) 指示目前的使用者是否有指定的使用權限集合。 (Inherited from SPSecurableObject.)
Public method DoesUserHavePermissions(SPUser, SPBasePermissions) 會指出指定的使用者是否有項目上的指定權限。
Public method DoesUserHavePermissionsForUI 檢查所指定的使用者是否有項目上的指定權限。
Public method EnsureWorkflowInformation() 檢查的項目工作流程資訊及必要的話,會更新,以確保使用的最新資訊。
Public method EnsureWorkflowInformation(Boolean, Boolean) 檢查的項目工作流程資訊及必要的話,會更新,以確保使用的最新資訊。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetFormattedValue 會傳回指定之的欄位值,包括格式設定。
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetUserEffectivePermissionInfo 取得有關指定的使用者對清單項目和角色指派給這位使用者在此範圍相關的有效權限的詳細的資訊。 (Overrides SPItem.GetUserEffectivePermissionInfo(String).)
Public method GetUserEffectivePermissions 取得指定的使用者對於清單項目擁有的有效權限。 (Overrides SPItem.GetUserEffectivePermissions(String).)
Public method GetWOPIFrameUrl 取得 SharePoint 圖文框] 頁面上,使用清單項目相關聯的 WOPI 應用程式起始SPWOPIAction物件的完整 URL。
Protected method MemberwiseClone (Inherited from Object.)
Public method Recycle 從內容資料庫中刪除項目,並傳回交易的全域唯一識別碼 (GUID)。
Public method ReplaceLink 會以新的連結取代指定的連結清單項目中的所有執行個體。
Public method ResetRoleInheritance 移除本機角色指派,使清單項目,以及其所有子代物件,重新繼承自父物件的角色指派。 (Overrides SPSecurableObject.ResetRoleInheritance().)
Public method SystemUpdate() 更新資料庫但不變更修改日期] 或 [修改者欄位的清單項目所做的變更。
Public method SystemUpdate(Boolean) 會更新資料庫但不變更 [已修改] 或 [修改者] 欄位或選擇性,項目版本對清單項目所做的變更。
Public method ToString (Inherited from Object.)
Public method UnlinkFromCopySource 如果從複製作業結果項目,請清除來源項目 URL。
Public method Update 清單項目所做的變更與更新的資料庫。 (Overrides SPItem.Update().)
Public method UpdateOverwriteVersion 這會更新此項目,不會建立另一個版本的項目。

Top

Fields

  Name Description
Protected field m_Fields 儲存與項目相關聯的欄位物件。 (Inherited from SPItem.)

Top

請參閱

參照

SPListItem class

Microsoft.SharePoint namespace