CreateModel 메서드
카탈로그 네임스페이스에서 모델을 만듭니다.
네임스페이스: ReportService2005
어셈블리: ReportService2005(ReportService2005.dll)
구문
‘선언
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("BatchHeaderValue")> _
Public Function CreateModel ( _
Model As String, _
Parent As String, _
Definition As Byte(), _
Properties As Property() _
) As Warning()
‘사용 방법
Dim instance As ReportingService2005
Dim Model As String
Dim Parent As String
Dim Definition As Byte()
Dim Properties As Property()
Dim returnValue As Warning()
returnValue = instance.CreateModel(Model, _
Parent, Definition, Properties)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("BatchHeaderValue")]
public Warning[] CreateModel(
string Model,
string Parent,
byte[] Definition,
Property[] Properties
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"BatchHeaderValue")]
public:
array<Warning^>^ CreateModel(
String^ Model,
String^ Parent,
array<unsigned char>^ Definition,
array<Property^>^ Properties
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/CreateModel", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("BatchHeaderValue")>]
member CreateModel :
Model:string *
Parent:string *
Definition:byte[] *
Properties:Property[] -> Warning[]
public function CreateModel(
Model : String,
Parent : String,
Definition : byte[],
Properties : Property[]
) : Warning[]
매개 변수
- Model
유형: System. . :: . .String
만들 모델의 이름입니다.
- Parent
유형: System. . :: . .String
새 모델을 추가할 폴더의 전체 이름입니다.
- Definition
유형: array<System. . :: . .Byte> [] () [] []
게시할 보고서 모델입니다. XML 데이터는 Semantic Model Definition Language(https://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/)에 의해 정의됩니다.
- Properties
유형: array<ReportService2005. . :: . .Property> [] () [] []
모델 속성과 해당 값을 정의하는 Property 개체의 배열입니다.
반환 값
유형: array<ReportService2005. . :: . .Warning> [] () [] []
다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.
SOAP 헤더 |
(In) BatchHeaderValue (Out) ServerInfoHeaderValue |
필요한 권한 |
CreateModel이 성공적으로 호출된 경우 모델 정의의 유효성을 검사하는 동안 발생했을 수 있는 모든 경고를 설명하는 Warning 개체의 배열이며, 그렇지 않으면 예외가 발생합니다.
주의
Model item security is turned off for the model when it is initially created.
The ModifiedBy and ModifiedDate properties of the parent folder are updated when CreateModel is successfully called.
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.