Compartilhar via


IConnectorFramework.InitializeWithBookmarkForTiers Method (Guid, DateTime, ConnectorTieredOperationFailure[])

 

Applies To: Operations Manager for System Center 2012

Initializes the monitoring connector that is required to get alerts by calling GetMonitoringAlertsWithBookmarkForTiers and sets the BookMark time to a specified date and time, for all tiered Management Groups. The failures that occurred for the configured tiers are returned.

Namespace:   Microsoft.EnterpriseManagement.ConnectorFramework
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

[FaultContractAttribute(typeof(TimeoutException))]
[FaultContractAttribute(typeof(ServerDisconnectedException))]
[FaultContractAttribute(typeof(UnknownServiceException))]
[FaultContractAttribute(typeof(UnknownChannelException))]
[FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))]
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))]
[FaultContractAttribute(typeof(UnknownDatabaseException))]
[FaultContractAttribute(typeof(InvalidDatabaseDataException))]
[FaultContractAttribute(typeof(ServiceNotRunningException))]
[OperationContractAttribute]
void InitializeWithBookmarkForTiers(
    Guid connectorId,
    DateTime utcBookmarkTime,
    out ConnectorTieredOperationFailure[] failures
)
[FaultContractAttribute((TimeoutException^::typeid))]
[FaultContractAttribute((ServerDisconnectedException^::typeid))]
[FaultContractAttribute((UnknownServiceException^::typeid))]
[FaultContractAttribute((UnknownChannelException^::typeid))]
[FaultContractAttribute((UnauthorizedAccessEnterpriseManagementException^::typeid))]
[FaultContractAttribute((UnknownAuthorizationStoreException^::typeid))]
[FaultContractAttribute((UnknownDatabaseException^::typeid))]
[FaultContractAttribute((InvalidDatabaseDataException^::typeid))]
[FaultContractAttribute((ServiceNotRunningException^::typeid))]
[OperationContractAttribute]
void InitializeWithBookmarkForTiers(
    Guid connectorId,
    DateTime utcBookmarkTime,
    [OutAttribute] array<ConnectorTieredOperationFailure^>^% failures
)
[<FaultContractAttribute(typeof(TimeoutException))>]
[<FaultContractAttribute(typeof(ServerDisconnectedException))>]
[<FaultContractAttribute(typeof(UnknownServiceException))>]
[<FaultContractAttribute(typeof(UnknownChannelException))>]
[<FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))>]
[<FaultContractAttribute(typeof(UnknownAuthorizationStoreException))>]
[<FaultContractAttribute(typeof(UnknownDatabaseException))>]
[<FaultContractAttribute(typeof(InvalidDatabaseDataException))>]
[<FaultContractAttribute(typeof(ServiceNotRunningException))>]
[<OperationContractAttribute>]
abstract InitializeWithBookmarkForTiers : 
        connectorId:Guid *
        utcBookmarkTime:DateTime *
        failures:ConnectorTieredOperationFailure[] byref -> unit
<FaultContractAttribute(GetType(TimeoutException))>
<FaultContractAttribute(GetType(ServerDisconnectedException))>
<FaultContractAttribute(GetType(UnknownServiceException))>
<FaultContractAttribute(GetType(UnknownChannelException))>
<FaultContractAttribute(GetType(UnauthorizedAccessEnterpriseManagementException))>
<FaultContractAttribute(GetType(UnknownAuthorizationStoreException))>
<FaultContractAttribute(GetType(UnknownDatabaseException))>
<FaultContractAttribute(GetType(InvalidDatabaseDataException))>
<FaultContractAttribute(GetType(ServiceNotRunningException))>
<OperationContractAttribute>
Sub InitializeWithBookmarkForTiers (
    connectorId As Guid,
    utcBookmarkTime As Date,
    <OutAttribute> ByRef failures As ConnectorTieredOperationFailure()
)

Parameters

  • connectorId
    Type: System.Guid

    The globally unique identifier (GUID) for the monitoring connector to initialize.

  • utcBookmarkTime
    Type: System.DateTime

    A timestamp bookmark. The connector's bookmark will be set to this bookmark time.

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 specified 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 P:Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector.Initialized property to determine if the monitoring connector is already initialized before attempting to Initialize the monitoring connector.

See Also

IConnectorFramework Interface
Microsoft.EnterpriseManagement.ConnectorFramework Namespace

Return to top