語言

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 表示資源是否成功取回的值。

適用於