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[]

渲染擴充資源則為 Base 64 編碼的位元組陣列。

備註

下表顯示此操作的標頭與權限資訊。

SOAP 標頭的使用 (在) TrustedUserHeaderValue

(出局) ServerInfoHeaderValue
原生模式所需權限 None
SharePoint 模式 必要權限 None

DeviceInfo傳遞給此方法的參數必須與呼叫Render該方法時所指定的參數相同。

該方法回傳 GetRenderResource 的渲染資源範例是加號(+)影像,用於在 HTML 渲染擴充中展開群組。 方法回傳的資源取決於 DeviceInfo 所提供的參數。 欲了解更多關於渲染擴充功能的裝置資訊設定,請參閱「將裝置資訊設定傳給渲染擴充」。

適用於