Partager via


NetworkAlertManager Constructor (Boolean)

 

Initializes a new instance of the NetworkAlertManager class with the specified Boolean value.

Namespace:   Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework
Assembly:  AlertFramework (in AlertFramework.dll)

Syntax

public NetworkAlertManager(
    bool fallbackToLocal
)
public:
NetworkAlertManager(
    bool fallbackToLocal
)
Public Sub New (
    fallbackToLocal As Boolean
)

Parameters

  • fallbackToLocal
    Type: System.Boolean

    Indicates that local alerts are used if the client is disconnected.

Remarks

When the NetworkAlertManager connects, two events are raised between invoking the connection and fully entering the connected state. When fallbackToLocal is set to true, the ConnectionOpened event is raised twice; once for the local alert connection and once for the network alert connection. When fallbackToLocal is set to false, ConnectionClosed event is raised first, then the ConnectionOpened event is raised when the network and local alert connections are acquired.

See Also

NetworkAlertManager Overload
NetworkAlertManager Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top