語言

ReportingService2010.SetItemDefinition(String, Byte[], Property[]) 方法

定義

設定指定項目的定義或內容。 此方法適用於 Report、 Model、 ResourceDatasetComponent及 DataSource 項目類型。

public:
 cli::array <ReportService2010::Warning ^> ^ SetItemDefinition(System::String ^ ItemPath, cli::array <System::Byte> ^ Definition, cli::array <ReportService2010::Property ^> ^ Properties);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemDefinition", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.Warning[] SetItemDefinition(string ItemPath, byte[] Definition, ReportService2010.Property[] Properties);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemDefinition", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.SetItemDefinition : string * byte[] * ReportService2010.Property[] -> ReportService2010.Warning[]
Public Function SetItemDefinition (ItemPath As String, Definition As Byte(), Properties As Property()) As Warning()

參數

ItemPath
String

項目的完整限定網址,包括檔名,以及在 SharePoint 模式下的副檔名。

Definition
Byte[]

項目定義以進行註冊。

Properties
Property[]

一個定義該物件屬性與值的物件陣列 Property 。

傳回

一個物件陣列 Warning ,描述在項目定義或內容驗證時所發生的警告。

屬性

備註

下表顯示此操作的標頭與權限資訊。

SOAP 標頭的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
原生模式所需權限 這取決於物品類型:

- Report, : DataSetUpdateReportDefinition
- Resource, : ComponentUpdateContent
- DataSource: UpdateContent
- Model: UpdateContent
SharePoint 模式 必要權限 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

參數長度 ItemPath 不得超過 260 個字元;否則會拋出帶有錯誤碼 rsItemLengthExceed 的 SOAP 例外。

ItemPath參數不能為空或空,或包含以下保留字元: : ? ; @ & = + $ , \ * > < | . "。 你可以用斜線字元(/)來分隔資料夾完整路徑名稱中的項目,但不能用在資料夾名稱的末尾。

若 ItemType 為 Report,則 XML 資料由 報表定義語言定義。 若 ItemType 為 Model,則 XML 資料由 語意模型定義語言定義。

更改項目的定義或內容會 ModifiedBy改變該項目的 、 ModifiedDate、 及 Size 屬性。 該 Description 物業未受影響。 執行設定和現有快照對該項目保持不變。

適用於