次の方法で共有


GetRenderResource メソッド

指定された表示拡張機能のフォーマットのリソースを返します。

名前空間:  ReportService2005
アセンブリ:  ReportService2005 (ReportService2005.dll)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetRenderResource ( _
    Format As String, _
    DeviceInfo As String, _
    <OutAttribute> ByRef MimeType As String _
) As Byte()
'使用
Dim instance As ReportingService2005
Dim Format As String
Dim DeviceInfo As String
Dim MimeType As String
Dim returnValue As Byte()

returnValue = instance.GetRenderResource(Format, _
    DeviceInfo, MimeType)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public byte[] GetRenderResource(
    string Format,
    string DeviceInfo,
    out string MimeType
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
array<unsigned char>^ GetRenderResource(
    String^ Format, 
    String^ DeviceInfo, 
    [OutAttribute] String^% MimeType
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetRenderResource", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetRenderResource : 
        Format:string * 
        DeviceInfo:string * 
        MimeType:string byref -> byte[] 
public function GetRenderResource(
    Format : String, 
    DeviceInfo : String, 
    MimeType : String
) : byte[]

パラメーター

  • Format
    型: System. . :: . .String
    リソースを取得する表示拡張機能のフォーマット (HTML4.0、XML、IMAGE など) です。使用可能な表示拡張機能の一覧を表示するには、ListExtensions メソッドを使用します。
  • DeviceInfo
    型: System. . :: . .String
    表示拡張機能で使用されるデバイス固有の設定です。

戻り値

型: array<System. . :: . .Byte> [] () [] []
Base64 エンコードされたバイト配列で表した表示拡張機能のリソースです。このデータ型の詳細については、Microsoft .NET Framework のドキュメントの「Byte 構造体」を参照してください。

説明

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダー

(Out) ServerInfoHeaderValue

必要な権限

なし

GetRenderResource メソッドによって返される表示リソースの例として、HTML 表示拡張機能でグループを展開するために使用されるプラス (+) のイメージがあります。メソッドが返すリソースは、指定する DeviceInfo パラメーターによって異なります。表示拡張機能のためのデバイス情報設定の詳細については、「Reporting Services デバイス情報設定」を参照してください。