Share via


MonitoringConnector.Initialize Method

Definition

Initializes the monitoring connector that is required to get alerts by calling GetMonitoringAlerts().

Overloads

Initialize()

Initializes this connector.

Initialize(DateTime)

Initializes this connector.

Remarks

The MonitoringConnector must be set up and initialized before any alerts can be retrieved. This method initializes the monitoring connector for subsequent calls with the currently stored bookmark.

Attempting to Initialize a monitoring connector that is already initialized results in an exception with the "The connector is already in the given state." warning. It is advisable to perform a check of the <xref:Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector.Initialized%2A> property to determine if the monitoring connector is already initialized before attempting to Initialize the monitoring connector.

Initialize()

Initializes this connector.

public:
 void Initialize();
public void Initialize ();
member this.Initialize : unit -> unit
Public Sub Initialize ()

Remarks

The MonitoringConnector must be set up and initialized before any alerts can be retrieved. This method initializes the monitoring connector for subsequent calls with the currently stored bookmark.

Attempting to Initialize a monitoring connector that is already initialized results in an exception with the "The connector is already in the given state." warning. It is advisable to perform a check of the <xref:Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector.Initialized%2A> property to determine if the monitoring connector is already initialized before attempting to Initialize the monitoring connector.

Applies to

Initialize(DateTime)

Initializes this connector.

public:
 void Initialize(DateTime utcBookmarkTime);
public void Initialize (DateTime utcBookmarkTime);
member this.Initialize : DateTime -> unit
Public Sub Initialize (utcBookmarkTime As DateTime)

Parameters

utcBookmarkTime
DateTime

The utc bookmark.

Examples

An example of this method is shown in MonitoringConnector.

Remarks

The MonitoringConnector must be set up and initialized before any alerts can be retrieved. This method initializes the monitoring connector for subsequent calls with the currently stored bookmark.

Attempting to Initialize a monitoring connector that is already initialized results in an exception with the "The connector is already in the given state." warning. It is advisable to perform a check of the <xref:Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector.Initialized%2A> property to determine if the monitoring connector is already initialized before attempting to Initialize the monitoring connector.

Applies to