语言

Report.GetResource(String, Byte[], String) 方法

定义

返回请求的资源及其 MIME 类型。

public:
 bool GetResource(System::String ^ resourcePath, [Runtime::InteropServices::Out] cli::array <System::Byte> ^ % resource, [Runtime::InteropServices::Out] System::String ^ % mimeType);
public bool GetResource(string resourcePath, out byte[] resource, out string mimeType);
member this.GetResource : string * Byte[] * string -> bool
Public Function GetResource (resourcePath As String, ByRef resource As Byte(), ByRef mimeType As String) As Boolean

参数

resourcePath
String

资源的路径。

resource
Byte[]

[出]一个包含资源的字节数组。

mimeType
String

A String 表示资源的 MIME 类型。

返回

一个 Boolean 表示资源是否被成功检索的值。

适用于