Méthode GetResource
Retourne la ressource demandée et son type MIME.
Espace de noms : Microsoft.ReportingServices.ReportRendering
Assembly : Microsoft.ReportingServices.ProcessingCore (en Microsoft.ReportingServices.ProcessingCore.dll)
Syntaxe
'Déclaration
Public Function GetResource ( _
resourcePath As String, _
<OutAttribute> ByRef resource As Byte(), _
<OutAttribute> ByRef mimeType As String _
) As Boolean
'Utilisation
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
Paramètres
- resourcePath
Type : System. . :: . .String
Chemin d'accès de la ressource à récupérer.
- resource
Type : array<System. . :: . .Byte> [] () [] []%
[out] Tableau d'octets qui contient la ressource.
- mimeType
Type : System. . :: . .String%
String indiquant le type MIME de la ressource.
Valeur de retour
Type : System. . :: . .Boolean
Valeur de type Boolean indiquant si la ressource a été récupérée.