Méthode StreamURL
Retourne l'URL nécessaire pour récupérer ce flux de données à partir d'un autre. Fonctionne avec la fonction déléguée CreateAndRegisterStream.
Espace de noms : Microsoft.ReportingServices.ReportRendering
Assembly : Microsoft.ReportingServices.ProcessingCore (en Microsoft.ReportingServices.ProcessingCore.dll)
Syntaxe
'Déclaration
Public Function StreamURL ( _
useSessionId As Boolean, _
streamName As String _
) As String
'Utilisation
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
Paramètres
- useSessionId
Type : System. . :: . .Boolean
Indique s'il faut utiliser l'ID de session. Si la valeur est True, l'ID de session est utilisé.
- streamName
Type : System. . :: . .String
Nom du flux de données.
Valeur de retour
Type : System. . :: . .String
Valeur de type String contenant l'URL nécessaire pour récupérer ce flux de données à partir d'un autre.
Notes
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.