GetResource-Methode
Gibt die angeforderte Ressource und deren MIME-Typ zurück.
Namespace: Microsoft.ReportingServices.ReportRendering
Assembly: Microsoft.ReportingServices.ProcessingCore (in Microsoft.ReportingServices.ProcessingCore.dll)
Syntax
'Declaration
Public Function GetResource ( _
resourcePath As String, _
<OutAttribute> ByRef resource As Byte(), _
<OutAttribute> ByRef mimeType As String _
) As Boolean
'Usage
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
Parameter
- resourcePath
Typ: System. . :: . .String
Der Pfad der abzurufenden Ressource.
- resource
Typ: array<System. . :: . .Byte> [] () [] []%
[out] Ein Bytearray, das die Ressource enthält.
- mimeType
Typ: System. . :: . .String%
Ein String-Wert, der den MIME-Typ der Ressource angibt.
Rückgabewert
Typ: System. . :: . .Boolean
Ein Boolean-Wert, der angibt, ob die Ressource erfolgreich abgerufen wurde.