共用方式為


StreamURL 方法

傳回從另一個資料流擷取這個資料流所需的 URL。搭配 CreateAndRegisterStream 委派函數使用。

命名空間:  Microsoft.ReportingServices.ReportRendering
組件:  Microsoft.ReportingServices.ProcessingCore (在 Microsoft.ReportingServices.ProcessingCore.dll 中)

語法

'宣告
Public Function StreamURL ( _
    useSessionId As Boolean, _
    streamName As String _
) As String
'用途
Dim instance As Report
Dim useSessionId As Boolean
Dim streamName As String
Dim returnValue As String

returnValue = instance.StreamURL(useSessionId, _
    streamName)
public string StreamURL(
    bool useSessionId,
    string streamName
)
public:
String^ StreamURL(
    bool useSessionId, 
    String^ streamName
)
member StreamURL : 
        useSessionId:bool * 
        streamName:string -> string 
public function StreamURL(
    useSessionId : boolean, 
    streamName : String
) : String

參數

  • useSessionId
    型別:System. . :: . .Boolean
    指出是否使用工作階段識別碼。如果為 true,則使用工作階段識別碼。

傳回值

型別:System. . :: . .String
String 值,其中包含從另一個資料流擷取這個資料流所需的 URL。

備註

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.