語言

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

渲染擴充資源則為 Base 64 編碼的位元組陣列。 欲了解更多關於此資料型態的資訊,請參閱 Microsoft .NET Framework 文件中的「位元組結構」。

備註

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

SOAP 標頭 (出局) ServerInfoHeaderValue
必要權限 None

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

適用於