Alert.AddNotification 메서드
Designates an operator that receives a notification message when the alert is raised.
네임스페이스: Microsoft.SqlServer.Management.Smo.Agent
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Sub AddNotification ( _
operatorName As String, _
notifymethod As NotifyMethods _
)
‘사용 방법
Dim instance As Alert
Dim operatorName As String
Dim notifymethod As NotifyMethods
instance.AddNotification(operatorName, _
notifymethod)
public void AddNotification(
string operatorName,
NotifyMethods notifymethod
)
public:
void AddNotification(
String^ operatorName,
NotifyMethods notifymethod
)
member AddNotification :
operatorName:string *
notifymethod:NotifyMethods -> unit
public function AddNotification(
operatorName : String,
notifymethod : NotifyMethods
)
매개 변수
- operatorName
유형: System.String
A String value that specifies the name of the operator.
- notifymethod
유형: Microsoft.SqlServer.Management.Smo.Agent.NotifyMethods
A NotifyMethods object value that specifies the notification method.
예
SQL Server 에이전트에서 자동 관리 태스크 예약
참고 항목
참조
Microsoft.SqlServer.Management.Smo.Agent 네임스페이스