共用方式為


Report.GetResource Method

Returns the requested resource and its MIME type.

命名空間: Microsoft.ReportingServices.ReportRendering
組件: Microsoft.ReportingServices.ProcessingCore (in microsoft.reportingservices.processingcore.dll)

語法

'宣告
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 不支援以傳址方式傳遞值類型的引數。

參數

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

傳回值

A Boolean value indicating whether the resource was successfully retrieved.

備註

新增:2005 年 12 月 5 日

執行緒安全性

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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

Report Class
Report Members
Microsoft.ReportingServices.ReportRendering Namespace