Partager via


Report.GetResource Method

Returns the requested resource and its MIME type.

Espace de noms: Microsoft.ReportingServices.ReportRendering
Assembly: Microsoft.ReportingServices.ProcessingCore (in microsoft.reportingservices.processingcore.dll)

Syntaxe

'Déclaration
Public Function GetResource ( _
    resourcePath As String, _
    <OutAttribute> ByRef resource As Byte(), _
    <OutAttribute> ByRef mimeType As String _
) As Boolean
public bool GetResource (
    string resourcePath,
    out byte[] resource,
    out string mimeType
)
public:
bool GetResource (
    String^ resourcePath, 
    [OutAttribute] array<unsigned char>^% resource, 
    [OutAttribute] String^% mimeType
)
public boolean GetResource (
    String resourcePath, 
    /** @attribute OutAttribute() */ /** @ref */ byte[] resource, 
    /** @attribute OutAttribute() */ /** @ref */ String mimeType
)
JScript ne prend pas en charge le passage d'arguments de type valeur par référence.

Paramètres

  • resourcePath
    The path of the resource to retrieve.
  • resource
    [out] A byte array that contains the resource.
  • mimeType
    A String indicating the resource's MIME type.

Valeur de retour

A Boolean value indicating whether the resource was successfully retrieved.

Notes

Nouveau :5 décembre 2005

Sécurité des threads

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

Report Class
Report Members
Microsoft.ReportingServices.ReportRendering Namespace