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