Share via


ISubscriptionManagement.InsertSubscription Method (Guid, IWorkflowSubscriptionBase)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

Namespace: Microsoft.EnterpriseManagement.Subscriptions
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim instance As ISubscriptionManagement
Dim managementPackId As Guid
Dim workflowOrNotificationSubscription As IWorkflowSubscriptionBase

instance.InsertSubscription(managementPackId, workflowOrNotificationSubscription)

Syntax

'Declaration
Sub InsertSubscription ( _
    managementPackId As Guid, _
    workflowOrNotificationSubscription As IWorkflowSubscriptionBase _
)
void InsertSubscription (
    Guid managementPackId,
    IWorkflowSubscriptionBase workflowOrNotificationSubscription
)
void InsertSubscription (
    Guid managementPackId, 
    IWorkflowSubscriptionBase^ workflowOrNotificationSubscription
)
void InsertSubscription (
    Guid managementPackId, 
    IWorkflowSubscriptionBase workflowOrNotificationSubscription
)
function InsertSubscription (
    managementPackId : Guid, 
    workflowOrNotificationSubscription : IWorkflowSubscriptionBase
)

Parameters

  • managementPackId
    The management pack unique identifier.
  • workflowOrNotificationSubscription
    The workflow or notification subscription.

Exceptions

Exception type Condition
ArgumentException

The workflowOrNotificationSubscription parameter is invalid or the subscription already exists.

Thread Safety

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

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ISubscriptionManagement Interface
ISubscriptionManagement Members
Microsoft.EnterpriseManagement.Subscriptions Namespace