次の方法で共有


Report.GetResource メソッド

表示中に使用される補助的なリソース (例: XML レンダラーによって使用される XSLT) の取得に使用します。

名前空間:  Microsoft.ReportingServices.OnDemandReportRendering
アセンブリ:  Microsoft.ReportingServices.ProcessingCore (Microsoft.ReportingServices.ProcessingCore.dll)

構文

'宣言
Public Function GetResource ( _
    resourcePath As String, _
    <OutAttribute> ByRef resource As Byte(), _
    <OutAttribute> ByRef mimeType As String _
) As Boolean
'使用
Dim instance As Report 
Dim resourcePath As String 
Dim resource As Byte()
Dim mimeType As String 
Dim returnValue As Boolean 

returnValue = instance.GetResource(resourcePath, _
    resource, mimeType)
public bool GetResource(
    string resourcePath,
    out byte[] resource,
    out string mimeType
)
public:
bool GetResource(
    String^ resourcePath, 
    [OutAttribute] array<unsigned char>^% resource, 
    [OutAttribute] String^% mimeType
)
member GetResource : 
        resourcePath:string * 
        resource:byte[] byref * 
        mimeType:string byref -> bool
public function GetResource(
    resourcePath : String, 
    resource : byte[], 
    mimeType : String
) : boolean

パラメーター

  • mimeType
    型: System.String%
    [out] リソース データの MIME タイプです。

戻り値

型: System.Boolean
リソースが正常に取得された場合は true、そうでない場合は false です。

関連項目

参照

Report クラス

Microsoft.ReportingServices.OnDemandReportRendering 名前空間