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[]

[out] 包含資源的位元組陣列。

mimeType
String

String,指出資源的 MIME 類型。

傳回

Boolean

Boolean 值,指出是否順利擷取資源。

適用於