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[]
[出]一个包含资源的字节数组。
- mimeType
- String
A String 表示资源的 MIME 类型。
返回
一个 Boolean 表示资源是否被成功检索的值。