ReportingService2005.CreateResource 메서드

정의

보고서 서버 데이터베이스에 새 리소스를 추가합니다.

public:
 void CreateResource(System::String ^ Resource, System::String ^ Parent, bool Overwrite, cli::array <System::Byte> ^ Contents, System::String ^ MimeType, cli::array <ReportService2005::Property ^> ^ Properties);
public void CreateResource (string Resource, string Parent, bool Overwrite, byte[] Contents, string MimeType, ReportService2005.Property[] Properties);
member this.CreateResource : string * string * bool * byte[] * string * ReportService2005.Property[] -> unit
Public Sub CreateResource (Resource As String, Parent As String, Overwrite As Boolean, Contents As Byte(), MimeType As String, Properties As Property())

매개 변수

Resource
String

새 리소스의 이름입니다.

Parent
String

새 리소스를 추가할 부모 폴더의 정규화된 URL입니다.

Overwrite
Boolean

이름과 경로가 같은 기존 리소스를 덮어쓸지 여부를 지정하는 Boolean 식입니다. 기본값은 false입니다.

Contents
Byte[]

리소스 파일의 내용입니다.

MimeType
String

리소스의 MIME(Multipurpose Internet Mail Extensions) 형식입니다. 최대 크기는 260자입니다.

Properties
Property[]

리소스에 대해 설정할 속성 이름과 값을 정의하는 Property 개체의 배열입니다.

설명

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

SOAP 헤더 (In) BatchHeaderValue

(Out) ServerInfoHeaderValue
필요한 권한 새 리소스 만들기: CreateResource 켜기 Parent

기존 리소스 업데이트: UpdateContentResource

리소스 속성 업데이트: UpdateContent AND UpdateProperties 켜기 Resource

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

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

오류가 발생하면 리소스가 만들어지지 않습니다.

보고서 서버 데이터베이스에 리소스를 추가하면 부모 폴더의 및 ModifiedDate 속성이 수정됩니다ModifiedBy.

적용 대상