Método GetModelDefinition
Recupera a definição para um modelo.
Namespace: ReportService2006
Assembly: ReportService2006 (em ReportService2006.dll)
Sintaxe
'Declaração
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelDefinition", 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 GetModelDefinition ( _
Model As String _
) As Byte()
'Uso
Dim instance As ReportingService2006
Dim Model As String
Dim returnValue As Byte()
returnValue = instance.GetModelDefinition(Model)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelDefinition", 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 byte[] GetModelDefinition(
string Model
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelDefinition", 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<unsigned char>^ GetModelDefinition(
String^ Model
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetModelDefinition", 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 GetModelDefinition :
Model:string -> byte[]
public function GetModelDefinition(
Model : String
) : byte[]
Parâmetros
- Model
Tipo: System. . :: . .String
A URL totalmente qualificada do modelo, incluindo o nome do arquivo e a extensão de nome de arquivo .smdl.
Valor de retorno
Tipo: array<System. . :: . .Byte> [] () [] []
A tabela a seguir mostra o cabeçalho e as informações de permissão sobre esta operação.
Cabeçalhos de SOAP |
(Out) ServerInfoHeaderValue |
Permissões necessárias |
OpenItems()()()() |
A definição de modelo como uma matriz de 64 bytes codificada de base. Para obter mais informações sobre esse tipo de dados, consulte a documentação do Microsoft .NET Framework sobre estrutura de byte.