ReportExecutionService.GetRenderResource(String, String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定的呈现扩展插件格式的资源。
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 标头用法 | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
本机模式所需权限 | 无 |
SharePoint 模式所需权限 | 无 |
DeviceInfo
传递给此方法的参数必须与调用Render方法中指定的参数相同。
方法返回 GetRenderResource 的呈现资源的一个示例是加 (+) 图像,用于展开 HTML 呈现扩展插件中的组。 方法返回的资源取决于 DeviceInfo
提供的参数。 有关呈现扩展插件的设备信息设置的详细信息,请参阅 将设备信息设置传递给呈现扩展插件。