ReportingService2006.CreateModel 메서드

Adds a model to a SharePoint library.

네임스페이스:  ReportService2006
어셈블리:  ReportService2006(ReportService2006.dll)

public CatalogItem CreateModel(
	string Model,
	string Parent,
	byte[] Definition,
	Property[] Properties,
	out Warning[] Warnings

매개 변수

유형: System.String
The name of the new model including the file name and .smdl file name extension.
유형: System.String
The fully qualified URL for the parent folder that will contain the new model.
유형: System.Byte[]
The report model definition to publish. The XML data is defined by the Semantic Model Definition Language .
유형: ReportService2006.Property[]
An array of Property objects that defines model properties and their values.
유형: ReportService2006.Warning[]%
[out] An array of Warning objects that describe any warnings that may have occurred during the validation of the model definition if CreateModel is called successfully; otherwise an exception is raised.

반환 값

유형: ReportService2006.CatalogItem
A CatalogItem object for the newly created model.

The table below shows header and permissions information on this operation.

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

AddListItems on Parent

Model item security is turned off for the model when it is first created.

The ModifiedBy and ModifiedDate properties of the parent folder are updated when CreateModel is successfully called.

If the .smdl file name extension is excluded from the model name, an rsFileExtensionRequired error will be returned.

The length of the Parent parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The Parent parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

커뮤니티 추가 항목