Jaa


Report.GetResource Method

Returns the requested resource and its MIME type.

Namespace: Microsoft.ReportingServices.ReportRendering
Assembly: Microsoft.ReportingServices.ProcessingCore (in microsoft.reportingservices.processingcore.dll)

Syntax

'Declaration
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 does not support passing value-type arguments by reference.

Parameters

  • 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.

Return Value

A Boolean value indicating whether the resource was successfully retrieved.

Remarks

New:5 December 2005

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Report Class
Report Members
Microsoft.ReportingServices.ReportRendering Namespace