Partager via


Méthode GetResourceContents

Récupère le contenu d'une ressource.

Espace de noms :  ReportService2005
Assembly :  ReportService2005 (en ReportService2005.dll)

Syntaxe

'Déclaration
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetResourceContents", 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)> _
Public Function GetResourceContents ( _
    Resource As String, _
    <OutAttribute> ByRef MimeType As String _
) As Byte()
'Utilisation
Dim instance As ReportingService2005
Dim Resource As String
Dim MimeType As String
Dim returnValue As Byte()

returnValue = instance.GetResourceContents(Resource, _
    MimeType)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetResourceContents", 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)]
public byte[] GetResourceContents(
    string Resource,
    out string MimeType
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetResourceContents", 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)]
public:
array<unsigned char>^ GetResourceContents(
    String^ Resource, 
    [OutAttribute] String^% MimeType
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetResourceContents", 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)>]
member GetResourceContents : 
        Resource:string * 
        MimeType:string byref -> byte[] 
public function GetResourceContents(
    Resource : String, 
    MimeType : String
) : byte[]

Paramètres

  • Resource
    Type : System. . :: . .String
    Chemin d'accès complet de la ressource pour laquelle le contenu doit être récupéré.
  • MimeType
    Type : System. . :: . .String%
    [out] Type MIME (Multipurpose Internet Mail Extensions) de la ressource.

Valeur de retour

Type : array<System. . :: . .Byte> [] () [] []
Contenu de la ressource en tant que tableau d'octets encodé en base 64.

Notes

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

SOAP Headers

(Out) ServerInfoHeaderValue

Required Permissions

ReadContent