Report.StreamURL Method
Returns the URL needed to retrieve this stream from another. Works with the CreateAndRegisterStream delegate function.
命名空間: Microsoft.ReportingServices.ReportRendering
組件: Microsoft.ReportingServices.ProcessingCore (in microsoft.reportingservices.processingcore.dll)
語法
'宣告
Public Function StreamURL ( _
useSessionId As Boolean, _
streamName As String _
) As String
public string StreamURL (
bool useSessionId,
string streamName
)
public:
String^ StreamURL (
bool useSessionId,
String^ streamName
)
public String StreamURL (
boolean useSessionId,
String streamName
)
public function StreamURL (
useSessionId : boolean,
streamName : String
) : String
參數
- useSessionId
Indicates whether to use the session ID. If true, the session ID is used.
- streamName
The name of the stream.
傳回值
A String value containing the URL needed to retrieve this stream from another.
備註
新增:2005 年 12 月 5 日
The CreateAndRegisterStream delegate function is called by the rendering extension to get the stream to render to. The main body of the report must be the first stream created. To refer to this stream in another stream, use the StreamURL method, concatenated with the name, a period, and the extension. For example, if the StreamURL is XYZ_files and this is stream ABC, and it is a JPEG file type, the stream can be referred to using XYZ_Files/ABC.jpg.
If the rendering extension calls the callback CreateAndRegisterStream to create a stream that it will access using the URL returned by the StreamURL method, both methods must use the same stream name.
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
Report Class
Report Members
Microsoft.ReportingServices.ReportRendering Namespace