GetResource 方法
Returns the requested resource and its MIME type.
命名空間: 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
The path of the resource to retrieve.
- resource
型別:array<System. . :: . .Byte> [] () [] []%
[out] A byte array that contains the resource.
- mimeType
型別:System. . :: . .String%
A string that indicates the resource's MIME type.
傳回值
型別:System. . :: . .Boolean
A Boolean value that indicates whether the resource was successfully retrieved.