Share via


AlertManagement.CreateSession(String, String, Int32, String) Method

Definition

Creates an alerting user session and populates related feed definitions, schema and preview data.

public:
 Guid CreateSession(System::String ^ reportUrl, System::String ^ parameters, int previewRowsCount, System::String ^ rsExecutionId);
[System.ServiceModel.FaultContract(typeof(AlertingWcfProxy.RsExceptionInfo), Action="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateSessionRsExceptionInfoFault", Name="RsExceptionInfo", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.ReportingServices.Alerting.ServiceContract")]
[System.ServiceModel.OperationContract(Action="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateSession", ReplyAction="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateSessionResponse")]
public Guid CreateSession (string reportUrl, string parameters, int previewRowsCount, string rsExecutionId);
[<System.ServiceModel.FaultContract(typeof(AlertingWcfProxy.RsExceptionInfo), Action="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateSessionRsExceptionInfoFault", Name="RsExceptionInfo", Namespace="http://schemas.datacontract.org/2004/07/Microsoft.ReportingServices.Alerting.ServiceContract")>]
[<System.ServiceModel.OperationContract(Action="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateSession", ReplyAction="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateSessionResponse")>]
abstract member CreateSession : string * string * int * string -> Guid
Public Function CreateSession (reportUrl As String, parameters As String, previewRowsCount As Integer, rsExecutionId As String) As Guid

Parameters

reportUrl
String

The URL to the report.

parameters
String

The URL-encoded parameters string.

previewRowsCount
Int32

The maximum number of rows in the preview data.

rsExecutionId
String

The reporting services session execution ID.

Returns

An alerting session identifier.

Attributes

Applies to