Compartir a través de


Report.GetResource Método

Returns the requested resource and its MIME type.

Espacio de nombres:  Microsoft.ReportingServices.ReportRendering
Ensamblado:  Microsoft.ReportingServices.ProcessingCore (en Microsoft.ReportingServices.ProcessingCore.dll)

Sintaxis

'Declaración
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

  • resourcePath
    Tipo: System.String
    The path of the resource to retrieve.
  • resource
    Tipo: array<System.Byte[]%
    [out] A byte array that contains the resource.
  • mimeType
    Tipo: System.String%
    A String indicating the resource's MIME type.

Valor devuelto

Tipo: System.Boolean
A Boolean value indicating whether the resource was successfully retrieved.

Vea también

Referencia

Report Clase

Espacio de nombres Microsoft.ReportingServices.ReportRendering