Share via


Report.GetResource(String, Byte[], String) Method

Definition

Returns the requested resource and its MIME type.

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

Parameters

resourcePath
String

The path of the resource to retrieve.

resource
Byte[]

[out] A byte array that contains the resource.

mimeType
String

A String indicating the resource's MIME type.

Returns

A Boolean value indicating whether the resource was successfully retrieved.

Applies to