ReportingService2010.SetItemDefinition(String, Byte[], Property[]) 메서드

정의

지정된 항목의 정의 또는 콘텐츠를 설정합니다. 이 메서드는 Report, Model, Dataset, Component, ResourceDataSource 항목 유형에 적용됩니다.

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 모드에서는 확장명을 포함하는 항목의 정규화된 URL입니다.

Definition
Byte[]

등록할 항목 정의입니다.

Properties
Property[]

항목에 대해 설정할 속성과 값을 정의하는 Property 개체의 배열입니다.

반환

항목 정의 또는 내용의 유효성을 검사할 때 발생한 경고를 설명하는 Warning 개체의 배열입니다.

특성

설명

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.

SOAP 헤더 사용 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
기본 모드 필수 권한 항목 유형에 따라 다릅니다.

- Report, DataSet: UpdateReportDefinition
- Resource, Component: UpdateContent
- DataSource: UpdateContent
- Model: UpdateContent
SharePoint 모드 필수 권한 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

매개 변수의 ItemPath 길이는 260자를 초과할 수 없습니다. 그렇지 않으면 오류 코드 rsItemLengthExceeded와 함께 SOAP 예외가 throw됩니다.

매개 변수는 ItemPath null이거나 비어 있거나 예약된 문자를 : ? ; @ & = + $ , \ * > < | . "포함할 수 없습니다. 슬래시 문자(/)를 사용하여 폴더의 전체 경로 이름에 있는 항목을 구분할 수 있지만 폴더 이름 끝에는 사용할 수 없습니다.

가 이ReportItemType XML 데이터는 보고서 정의 언어로 정의됩니다. 가 이ModelItemType XML 데이터는 의미 체계 모델 정의 언어로 정의됩니다.

항목의 정의 또는 콘텐츠를 변경하면 항목의 ModifiedBy, ModifiedDateSize 속성이 수정됩니다. 속성은 Description 영향을 받지 않습니다. 실행 설정 및 기존 스냅샷은 항목에 대해 변경되지 않은 상태로 유지됩니다.

적용 대상