语言

ReportExecutionService.GetRenderResource(String, String, String) 方法

定义

返回指定的渲染扩展格式的资源。

public:
 cli::array <System::Byte> ^ GetRenderResource(System::String ^ Format, System::String ^ DeviceInfo, [Runtime::InteropServices::Out] System::String ^ % MimeType);
public byte[] GetRenderResource(string Format, string DeviceInfo, out string MimeType);
member this.GetRenderResource : string * string * string -> byte[]
Public Function GetRenderResource (Format As String, DeviceInfo As String, ByRef MimeType As String) As Byte()

参数

Format
String

用于检索资源的渲染扩展格式。 通过调用该 ListRenderingExtensions() 方法可以获得支持扩展的列表。

DeviceInfo
String

渲染扩展使用的设备特定设置。

MimeType
String

资源的MIME类型。

返回

Byte[]

渲染扩展资源作为基64编码的字节数组。

注解

下表显示了该操作的头部和权限信息。

SOAP头的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
本地模式所需权限 None
SharePoint 模式 必要权限 None

DeviceInfo传递给该方法的参数必须与调用Render该方法时指定的参数相同。

该方法返回 GetRenderResource 的一个渲染资源示例是加号(+)图像,用于在HTML渲染扩展中扩展分组。 方法返回的资源取决于 DeviceInfo 所提供的参数。 关于渲染扩展的设备信息设置的更多信息,请参见 “传递设备信息设置给渲染扩展”。

适用于