Report.GetResource(String, Byte[], String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回要求的資源及其 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 值,指出是否順利擷取資源。