Metoda Report.GetResource
Służy do pobierania pomocnicze zasoby używane podczas renderowania; np jest XSLT używany przez mechanizm renderujący XML.
Przestrzeń nazw: Microsoft.ReportingServices.OnDemandReportRendering
Zestaw: Microsoft.ReportingServices.ProcessingCore (w Microsoft.ReportingServices.ProcessingCore.dll)
Składnia
'Deklaracja
Public Function GetResource ( _
resourcePath As String, _
<OutAttribute> ByRef resource As Byte(), _
<OutAttribute> ByRef mimeType As String _
) As Boolean
'Użycie
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
Parametry
- resourcePath
Typ: System.String
Ścieżka zasób.
- resource
Typ: array<System.Byte[]%
- mimeType
Typ: System.String%
[Brak] Typ MIME danych zasób.
Wartość zwracana
Typ: System.Boolean
TRUE , jeśli zasób jest pomyślnie pobrane; w przeciwnym razie false.
Zobacz także