Language

ReportingService2010.SetItemDefinition(String, Byte[], Property[]) メソッド

定義

指定された項目の定義や内容を設定します。 この方法は Report、 Model、 Dataset、 Component、 Resource、 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

項目の完全限定URLと、ファイル名、SharePointモードでは拡張子を含みます。

Definition
Byte[]

登録するためのアイテム定義。

Properties
Property[]

Propertyオブジェクトの配列で、そのアイテムに対して設定するプロパティや値を定義します。

返品

項目定義やコンテンツの検証時に発生した警告を表す Warning オブジェクトの配列です。

属性

注釈

以下の表は、この操作のヘッダーおよび権限情報を示しています。

SOAPヘッダーの使用 (イン) TrustedUserHeaderValue

(アウト) ServerInfoHeaderValue
ネイティブモードの必要権限 アイテムの種類によります:

- Report、 DataSet: UpdateReportDefinition
- Resource、 Component: UpdateContent
- DataSource: UpdateContent
- Model: UpdateContent
SharePointモードの必要権限 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

ItemPathパラメータの長さは260文字を超えてはなりません。そうでなければ、エラーコードrsItemLengthExceedでSOAP例外が発生します。

ItemPathパラメータはnullや空であってはならず、以下の保留文字を含むことはできません:: ? ; @ & = + $ , \ * > < | . "。 フォルダーのフルパス名の項目を区切るためにスラッシュ文字(/)を使うことはできますが、フォルダ名の最後に使うことはできません。

ItemTypeがReportされている場合、XMLデータはレポート定義言語によって定義されます。 ItemTypeがModelされている場合、XMLデータはセマンティックモデル定義言語によって定義されます。

アイテムの定義や内容を変更すると、そのアイテムの ModifiedBy、 ModifiedDate、 Size プロパティが変更されます。 Descriptionの物件は影響を受けません。 実行設定や既存のスナップショットはアイテムのまま変わりません。

適用対象