Share via


ISubscriptionManagement.InsertSubscription Method

Definition

Inserts a workflow or notification subscription.

Overloads

InsertSubscription(Guid, IWorkflowSubscriptionBase)

Inserts a workflow or notification subscription into the provided management pack.

InsertSubscription(Guid, IWorkflowSubscriptionBase, Nullable<Guid>, IList<ManagementPackEnumeration>, ManagementPackReferenceCollection)

Inserts a workflow or notification subscription into the provided management pack and configures the target of the subscription.

InsertSubscription(Guid, IWorkflowSubscriptionBase)

Inserts a workflow or notification subscription into the provided management pack.

public:
 void InsertSubscription(Guid managementPackId, Microsoft::EnterpriseManagement::Subscriptions::IWorkflowSubscriptionBase ^ workflowOrNotificationSubscription);
public void InsertSubscription (Guid managementPackId, Microsoft.EnterpriseManagement.Subscriptions.IWorkflowSubscriptionBase workflowOrNotificationSubscription);
abstract member InsertSubscription : Guid * Microsoft.EnterpriseManagement.Subscriptions.IWorkflowSubscriptionBase -> unit
Public Sub InsertSubscription (managementPackId As Guid, workflowOrNotificationSubscription As IWorkflowSubscriptionBase)

Parameters

managementPackId
Guid

The management pack unique identifier.

workflowOrNotificationSubscription
IWorkflowSubscriptionBase

The workflow or notification subscription.

Exceptions

The workflowOrNotificationSubscription parameter is invalid or the subscription already exists.

Applies to

InsertSubscription(Guid, IWorkflowSubscriptionBase, Nullable<Guid>, IList<ManagementPackEnumeration>, ManagementPackReferenceCollection)

Inserts a workflow or notification subscription into the provided management pack and configures the target of the subscription.

public:
 void InsertSubscription(Guid managementPackId, Microsoft::EnterpriseManagement::Subscriptions::IWorkflowSubscriptionBase ^ workflowOrNotificationSubscription, Nullable<Guid> targetId, System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackEnumeration ^> ^ mpEnumerationList, Microsoft::EnterpriseManagement::Configuration::ManagementPackReferenceCollection ^ mpReferenceslist);
public void InsertSubscription (Guid managementPackId, Microsoft.EnterpriseManagement.Subscriptions.IWorkflowSubscriptionBase workflowOrNotificationSubscription, Guid? targetId, System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration> mpEnumerationList, Microsoft.EnterpriseManagement.Configuration.ManagementPackReferenceCollection mpReferenceslist);
abstract member InsertSubscription : Guid * Microsoft.EnterpriseManagement.Subscriptions.IWorkflowSubscriptionBase * Nullable<Guid> * System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackEnumeration> * Microsoft.EnterpriseManagement.Configuration.ManagementPackReferenceCollection -> unit
Public Sub InsertSubscription (managementPackId As Guid, workflowOrNotificationSubscription As IWorkflowSubscriptionBase, targetId As Nullable(Of Guid), mpEnumerationList As IList(Of ManagementPackEnumeration), mpReferenceslist As ManagementPackReferenceCollection)

Parameters

managementPackId
Guid

The management pack unique identifier.

workflowOrNotificationSubscription
IWorkflowSubscriptionBase

The workflow or notification subscription.

targetId
Nullable<Guid>

The subscription target identifier.

mpEnumerationList
IList<ManagementPackEnumeration>

The management pack enumeration list.

mpReferenceslist
ManagementPackReferenceCollection

The management pack references list.

Exceptions

The workflowOrNotificationSubscription parameter is invalid or the subscription already exists.

Applies to