语言

ReportingService2005.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

用于检索资源的渲染扩展格式(HTML4.0、XML、IMAGE等)。 如需查看可用的渲染扩展列表,请使用该 ListExtensions(ExtensionTypeEnum) 方法。

DeviceInfo
String

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

MimeType
String

[出]资源的MIME类型。

返回

Byte[]

渲染扩展资源作为基64编码的字节数组。 有关该数据类型的更多信息,请参见Microsoft .NET框架文档中的“字节结构”。

注解

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

SOAP 头部 (出局) ServerInfoHeaderValue
所需的权限 None

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

适用于