Метод GetResource
Возвращает запрошенный ресурс и его тип MIME.
Пространство имен: Microsoft.ReportingServices.ReportRendering
Сборка: Microsoft.ReportingServices.ProcessingCore (в Microsoft.ReportingServices.ProcessingCore.dll)
Синтаксис
'Декларация
Public Function GetResource ( _
resourcePath As String, _
<OutAttribute> ByRef resource As Byte(), _
<OutAttribute> ByRef mimeType As String _
) As Boolean
'Применение
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
Параметры
- resourcePath
Тип: System. . :: . .String
Путь к извлекаемому ресурсу.
- resource
Тип: array<System. . :: . .Byte> [] () [] []%
[out] Массив байтов, содержащий ресурс.
- mimeType
Тип: System. . :: . .String%
Значение типа String, указывающее тип MIME ресурса.
Возвращаемое значение
Тип: System. . :: . .Boolean
Значение типа Boolean, указывающее, извлечен ли ресурс.