IConnectorFramework.GetMonitoringAlertsByIds Method

Updated: April 16, 2012

Gets the specified alerts that are marked for the monitoring connector. Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As IConnectorFramework Dim connectorId As Guid Dim alertIds As Guid() Dim languageCodes As String Dim returnValue As ConnectorMonitoringAlert() returnValue = instance.GetMonitoringAlertsByIds(connectorId, alertIds, languageCodes)<FaultContractAttribute(GetType(TimeoutException))> _ <FaultContractAttribute(GetType(ServerDisconnectedException))> _ <FaultContractAttribute(GetType(ServiceNotRunningException))> _ <FaultContractAttribute(GetType(UnknownServiceException))> _ <FaultContractAttribute(GetType(UnknownChannelException))> _ <FaultContractAttribute(GetType(UnauthorizedAccessEnterpriseManagementException))> _ <FaultContractAttribute(GetType(UnknownAuthorizationStoreException))> _ <FaultContractAttribute(GetType(UnknownDatabaseException))> _ <FaultContractAttribute(GetType(InvalidOperationException))> _ <OperationContractAttribute> _ <FaultContractAttribute(GetType(InvalidDatabaseDataException))> _ <FaultContractAttribute(GetType(ConnectorInvalidException))> _ <FaultContractAttribute(GetType(ArgumentNullException))> _ Function GetMonitoringAlertsByIds ( _ connectorId As Guid, _ alertIds As Guid(), _ languageCodes As String _ ) As ConnectorMonitoringAlert()[FaultContractAttribute(typeof(TimeoutException))] [FaultContractAttribute(typeof(ServerDisconnectedException))] [FaultContractAttribute(typeof(ServiceNotRunningException))] [FaultContractAttribute(typeof(UnknownServiceException))] [FaultContractAttribute(typeof(UnknownChannelException))] [FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))] [FaultContractAttribute(typeof(UnknownAuthorizationStoreException))] [FaultContractAttribute(typeof(UnknownDatabaseException))] [FaultContractAttribute(typeof(InvalidOperationException))] [OperationContractAttribute] [FaultContractAttribute(typeof(InvalidDatabaseDataException))] [FaultContractAttribute(typeof(ConnectorInvalidException))] [FaultContractAttribute(typeof(ArgumentNullException))] ConnectorMonitoringAlert[] GetMonitoringAlertsByIds ( Guid connectorId, Guid[] alertIds, string languageCodes )[FaultContractAttribute(typeof(TimeoutException))] [FaultContractAttribute(typeof(ServerDisconnectedException))] [FaultContractAttribute(typeof(ServiceNotRunningException))] [FaultContractAttribute(typeof(UnknownServiceException))] [FaultContractAttribute(typeof(UnknownChannelException))] [FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))] [FaultContractAttribute(typeof(UnknownAuthorizationStoreException))] [FaultContractAttribute(typeof(UnknownDatabaseException))] [FaultContractAttribute(typeof(InvalidOperationException))] [OperationContractAttribute] [FaultContractAttribute(typeof(InvalidDatabaseDataException))] [FaultContractAttribute(typeof(ConnectorInvalidException))] [FaultContractAttribute(typeof(ArgumentNullException))] array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsByIds ( Guid connectorId, array<Guid>^ alertIds, String^ languageCodes )/** @attribute FaultContractAttribute(System.TimeoutException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServerDisconnectedException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServiceNotRunningException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownServiceException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownChannelException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnauthorizedAccessEnterpriseManagementException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownDatabaseException) */ /** @attribute FaultContractAttribute(System.InvalidOperationException) */ /** @attribute OperationContractAttribute() */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.InvalidDatabaseDataException) */ /** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ConnectorInvalidException) */ /** @attribute FaultContractAttribute(System.ArgumentNullException) */ ConnectorMonitoringAlert[] GetMonitoringAlertsByIds ( Guid connectorId, Guid[] alertIds, String languageCodes )FaultContractAttribute(System.TimeoutException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServerDisconnectedException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServiceNotRunningException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownServiceException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownChannelException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnauthorizedAccessEnterpriseManagementException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownDatabaseException) FaultContractAttribute(System.InvalidOperationException) OperationContractAttribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.InvalidDatabaseDataException) FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ConnectorInvalidException) FaultContractAttribute(System.ArgumentNullException) function GetMonitoringAlertsByIds ( connectorId : Guid, alertIds : Guid[], languageCodes : String ) : ConnectorMonitoringAlert[]ParametersconnectorIdThe globally unique identifier (GUID) for the monitoring connector to get alerts for.alertIdsThe identifiers of the alerts to get.languageCodesA comma-delimited list of language codes. The language code is an ISO 639-2 three-letter code that corresponds to the values used by the CultureInfo.ThreeLetterISOLanguageName property.Return ValueReturns an array of ConnectorMonitoringAlert objects that contain the alerts for the specified monitoring connector.

To get a ConnectorMonitoringAlert array collection through a MonitoringConnector:

  • The monitoring connector must be set up.

  • The monitoring connector must be initialized.

  • Alerts must be present.

  • Alerts must be marked for the monitoring connector.

You can specify which alerts to get by specifying an array of alert identifiers.

This method gets alerts only from the bookmark date to the current time less 30 seconds.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms