IMonitoringNotificationManagement.GetNotificationSubscription Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetNotificationSubscription(Guid) |
Retrieve notification subscription by id. |
| GetNotificationSubscription(String) |
Retrieve notification subscription by name. |
GetNotificationSubscription(Guid)
Retrieve notification subscription by id.
public:
Microsoft::EnterpriseManagement::Administration::NotificationSubscription ^ GetNotificationSubscription(Guid id);
public Microsoft.EnterpriseManagement.Administration.NotificationSubscription GetNotificationSubscription (Guid id);
abstract member GetNotificationSubscription : Guid -> Microsoft.EnterpriseManagement.Administration.NotificationSubscription
Public Function GetNotificationSubscription (id As Guid) As NotificationSubscription
Parameters
- id
- Guid
The id.
Returns
A notification subscriptions.
Exceptions
ObjectNotFoundException
A subscription with that id not found
Applies to
GetNotificationSubscription(String)
Retrieve notification subscription by name.
public:
Microsoft::EnterpriseManagement::Administration::NotificationSubscription ^ GetNotificationSubscription(System::String ^ name);
public Microsoft.EnterpriseManagement.Administration.NotificationSubscription GetNotificationSubscription (string name);
abstract member GetNotificationSubscription : string -> Microsoft.EnterpriseManagement.Administration.NotificationSubscription
Public Function GetNotificationSubscription (name As String) As NotificationSubscription
Parameters
- name
- String
The name.
Returns
A notification subscriptions.
Exceptions
ObjectNotFoundException
A subscription with that name not found