ISubscriptionManagement.InsertSubscriptions Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Inserts a list of workflow or notification subscriptions into the given management pack and configures the target of the subscription.
Namespace: Microsoft.EnterpriseManagement.Subscriptions
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)
Usage
'Usage
Dim instance As ISubscriptionManagement
Dim managementPackId As Guid
Dim workflowOrNotificationSubscriptions As IList(Of IWorkflowSubscriptionBase)
Dim targetId As Nullable(Of Guid)
Dim mpEnumerationList As IList(Of ManagementPackEnumeration)
Dim mpReferenceslist As ManagementPackReferenceCollection
instance.InsertSubscriptions(managementPackId, workflowOrNotificationSubscriptions, targetId, mpEnumerationList, mpReferenceslist)
Syntax
'Declaration
Sub InsertSubscriptions ( _
managementPackId As Guid, _
workflowOrNotificationSubscriptions As IList(Of IWorkflowSubscriptionBase), _
targetId As Nullable(Of Guid), _
mpEnumerationList As IList(Of ManagementPackEnumeration), _
mpReferenceslist As ManagementPackReferenceCollection _
)
void InsertSubscriptions (
Guid managementPackId,
IList<IWorkflowSubscriptionBase> workflowOrNotificationSubscriptions,
Nullable<Guid> targetId,
IList<ManagementPackEnumeration> mpEnumerationList,
ManagementPackReferenceCollection mpReferenceslist
)
void InsertSubscriptions (
Guid managementPackId,
IList<IWorkflowSubscriptionBase^>^ workflowOrNotificationSubscriptions,
Nullable<Guid> targetId,
IList<ManagementPackEnumeration^>^ mpEnumerationList,
ManagementPackReferenceCollection^ mpReferenceslist
)
void InsertSubscriptions (
Guid managementPackId,
IList<IWorkflowSubscriptionBase> workflowOrNotificationSubscriptions,
Nullable<Guid> targetId,
IList<ManagementPackEnumeration> mpEnumerationList,
ManagementPackReferenceCollection mpReferenceslist
)
function InsertSubscriptions (
managementPackId : Guid,
workflowOrNotificationSubscriptions : IList<IWorkflowSubscriptionBase>,
targetId : Nullable<Guid>,
mpEnumerationList : IList<ManagementPackEnumeration>,
mpReferenceslist : ManagementPackReferenceCollection
)
Parameters
- managementPackId
The GUID of the management pack to insert the subscription to.
- workflowOrNotificationSubscriptions
The workflow or notification subscriptions.
- targetId
The subscription target identifier.
- mpEnumerationList
The management pack enumeration list.
- mpReferenceslist
The management pack references list.
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