ReportingService2006.CreateModel 메서드

정의

SharePoint 라이브러리에 모델을 추가합니다.

public:
 ReportService2006::CatalogItem ^ CreateModel(System::String ^ Model, System::String ^ Parent, cli::array <System::Byte> ^ Definition, cli::array <ReportService2006::Property ^> ^ Properties, [Runtime::InteropServices::Out] cli::array <ReportService2006::Warning ^> ^ % Warnings);
public ReportService2006.CatalogItem CreateModel (string Model, string Parent, byte[] Definition, ReportService2006.Property[] Properties, out ReportService2006.Warning[] Warnings);
member this.CreateModel : string * string * byte[] * ReportService2006.Property[] * Warning[] -> ReportService2006.CatalogItem
Public Function CreateModel (Model As String, Parent As String, Definition As Byte(), Properties As Property(), ByRef Warnings As Warning()) As CatalogItem

매개 변수

Model
String

파일 이름과 .smdl 파일 이름 확장명을 포함하는 새 모델의 이름입니다.

Parent
String

새 모델이 포함될 부모 폴더의 정규화된 URL입니다.

Definition
Byte[]

게시할 보고서 모델 정의입니다. XML 데이터는 의미 체계 모델 정의 언어 로 http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ 정의됩니다.

Properties
Property[]

모델 속성과 해당 값을 정의하는 Property 개체의 배열입니다.

Warnings
Warning[]

[out] Warning가 성공적으로 호출된 경우 모델 정의의 유효성을 검사하는 동안 발생했을 수 있는 모든 경고를 설명하는 CreateModel(String, String, Byte[], Property[], Warning[]) 개체의 배열이며, 그렇지 않으면 예외가 발생합니다.

반환

새로 만든 모델에 대한 CatalogItem 개체입니다.

설명

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

SOAP 헤더 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
필요한 권한 Parent가 있는 경우 <xref:Microsoft.SharePoint.SPBasePermissions.AddListItems>

모델 항목 보안은 모델을 처음 만들 때 꺼집니다.

ModifiedBy 가 성공적으로 호출되면 부모 폴더의 및 ModifiedDate 속성이 업데이트 CreateModel 됩니다.

.smdl 파일 이름 확장명을 모델 이름 rsFileExtensionRequired 에서 제외하면 오류가 반환됩니다.

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

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

적용 대상