다음을 통해 공유


SetModelDefinition 메서드

Sets the definition for a specified model.

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

구문

‘선언
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetModelDefinition", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function SetModelDefinition ( _
    Model As String, _
    Definition As Byte() _
) As Warning()
‘사용 방법
Dim instance As ReportingService2006
Dim Model As String
Dim Definition As Byte()
Dim returnValue As Warning()

returnValue = instance.SetModelDefinition(Model, _
    Definition)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetModelDefinition", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public Warning[] SetModelDefinition(
    string Model,
    byte[] Definition
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetModelDefinition", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
array<Warning^>^ SetModelDefinition(
    String^ Model, 
    array<unsigned char>^ Definition
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetModelDefinition", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member SetModelDefinition : 
        Model:string * 
        Definition:byte[] -> Warning[] 
public function SetModelDefinition(
    Model : String, 
    Definition : byte[]
) : Warning[]

매개 변수

  • Model
    형식: System. . :: . .String
    The fully qualified URL for the model including the file name and .smdl file name extension.

반환 값

형식: array<ReportService2006. . :: . .Warning> [] () [] []
An array of Warning objects that describe any warnings that occurred during validation of the model definition.

주의

The definition supplied replaces the existing model definition.

The model ID of the submitted model must match that of the existing model or an rsModelIDMismatch error is returned.