Partilhar via


Método GetResource

Used to retrieve auxiliary resources used during rendering. E.g. An XSLT used by the XML renderer

Namespace:  Microsoft.ReportingServices.OnDemandReportRendering
Assembly:  Microsoft.ReportingServices.ProcessingCore (em Microsoft.ReportingServices.ProcessingCore.dll)

Sintaxe

'Declaração
Public Function GetResource ( _
    resourcePath As String, _
    <OutAttribute> ByRef resource As Byte(), _
    <OutAttribute> ByRef mimeType As String _
) As Boolean
'Uso
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

Parâmetros

Valor de retorno

Tipo: System. . :: . .Boolean
true if the resource is successfully retrieved; otherwise, false.