Compartir a través de


AlertSystem.IsForwardedAlways Propiedad

Gets or sets the Boolean property value that specifies whether all events are forwarded to the forwarding server or only those that have no event notification defined on the current instance of SQL Server.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property IsForwardedAlways As Boolean 
    Get 
    Set
'Uso
Dim instance As AlertSystem 
Dim value As Boolean 

value = instance.IsForwardedAlways

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

Valor de la propiedad

Tipo: System.Boolean
A Boolean value that specifies whether to forward all events or only those with no event notification.If True, all events are forwarded to the forwarding server.If False (default), only the events that have no event notification defined are forwarded.

Ejemplos

Programar tareas administrativas automáticas en el Agente SQL Server

Vea también

Referencia

AlertSystem Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo.Agent

Otros recursos

Tareas administrativas automatizadas (Agente SQL Server)

sp_add_alert (Transact-SQL)