AlertManagement.CreateAlertDefinition 方法

定义

从当前会话创建警报定义。

public:
 Guid CreateAlertDefinition(AlertingWcfProxy::AlertDefinitionCreate ^ alertDefinition, AlertingWcfProxy::AlertSchedule ^ schedule, AlertingWcfProxy::DeliveryTarget ^ deliveryTarget);
[System.ServiceModel.FaultContract(typeof(AlertingWcfProxy.RsExceptionInfo), Action="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateAlertDefinitionRsExceptionInfoFault", 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/CreateAlertDefinition", ReplyAction="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateAlertDefinitionResponse")]
public Guid CreateAlertDefinition (AlertingWcfProxy.AlertDefinitionCreate alertDefinition, AlertingWcfProxy.AlertSchedule schedule, AlertingWcfProxy.DeliveryTarget deliveryTarget);
[<System.ServiceModel.FaultContract(typeof(AlertingWcfProxy.RsExceptionInfo), Action="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateAlertDefinitionRsExceptionInfoFault", 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/CreateAlertDefinition", ReplyAction="http://schemas.microsoft.com/sqlserver/reporting/2010/10/01/AlertManagement/AlertManagement/CreateAlertDefinitionResponse")>]
abstract member CreateAlertDefinition : AlertingWcfProxy.AlertDefinitionCreate * AlertingWcfProxy.AlertSchedule * AlertingWcfProxy.DeliveryTarget -> Guid
Public Function CreateAlertDefinition (alertDefinition As AlertDefinitionCreate, schedule As AlertSchedule, deliveryTarget As DeliveryTarget) As Guid

参数

alertDefinition
AlertDefinitionCreate

警报定义。

schedule
AlertSchedule

警报计划。

deliveryTarget
DeliveryTarget

传递目标。

返回

Guid

警报定义标识符。

属性

适用于