Share via


AlertSystem.NotificationMethod Property

Gets or sets the notification method used to notify the fail-safe operator.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property NotificationMethod As NotifyMethods 
    Get 
    Set
'Usage
Dim instance As AlertSystem 
Dim value As NotifyMethods 

value = instance.NotificationMethod

instance.NotificationMethod = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public NotifyMethods NotificationMethod { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property NotifyMethods NotificationMethod {
    NotifyMethods get ();
    void set (NotifyMethods value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member NotificationMethod : NotifyMethods with get, set
function get NotificationMethod () : NotifyMethods 
function set NotificationMethod (value : NotifyMethods)

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.NotifyMethods
A NotifyMethods object value that specifies the notification method used to notify the fail-safe operator.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

AlertSystem Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_add_alert (Transact-SQL)