ReportingService2006.DeleteItem(String) 方法

定義

從 SharePoint 文件庫中刪除指定的項目。

public:
 void DeleteItem(System::String ^ Item);
public void DeleteItem (string Item);
member this.DeleteItem : string -> unit
Public Sub DeleteItem (Item As String)

參數

Item
String

項目的完整 URL,包括檔名和副檔名。

備註

下表顯示標頭以及有關這項作業的權限資訊。

SOAP 標頭 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
必要權限 DeleteListItems

參數的長度 Item 不能超過260個字元; 否則會擲回 SOAP 例外狀況,並傳回錯誤碼 rsItemLengthExceeded

Item參數不可為 null 或空白,或包含下列保留字元: : ? ; @ & = + $ , \ * > < | . " 。 您可以使用正斜線字元 (/) 將資料夾的完整路徑名稱中的專案分開,但不能在資料夾名稱的結尾使用它。

DeleteItem方法不只會從 SharePoint 文件庫中刪除指定的專案,也會刪除與報表專案相關聯的其他專案,例如訂閱、排程和快照集。

從 SharePoint 文件庫中刪除專案時,會修改 ModifiedBy ModifiedDate 父專案的和屬性。

除了之外,所有的目錄專案類型都可以刪除 Site

適用於