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
轉譯延伸模組所使用的裝置專用設定。
- MimeType
型別:System. . :: . .String%
[out] 資源的 MIME 類型。
傳回值
型別:array<System. . :: . .Byte> [] () [] []
Base 64 編碼位元組陣列的轉譯延伸模組資源。如需有關這個資料類型的詳細資訊,請參閱 Microsoft .NET Framework 文件集中的<位元組結構>。
備註
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
None |
An example of a rendering resource that is returned by the GetRenderResource method is the plus (+) image, which is used to expand groups in the HTML rendering extension. The resource that the method returns depends on the DeviceInfo parameter that is supplied. For more information about device information settings for rendering extensions, see Reporting Services 裝置資訊設定.