Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)
Usage
Visual Basic |
---|
Dim instance As ISubscriptionManagement Dim managementPackId As Guid Dim workflowOrNotificationSubscription As IWorkflowSubscriptionBase Dim targetId As Nullable(Of Guid) Dim mpEnumerationList As IList(Of ManagementPackEnumeration) Dim mpReferenceslist As ManagementPackReferenceCollection instance.InsertSubscription(managementPackId, workflowOrNotificationSubscription, targetId, mpEnumerationList, mpReferenceslist) |
Syntax
Visual Basic |
---|
Sub InsertSubscription ( _ managementPackId As Guid, _ workflowOrNotificationSubscription As IWorkflowSubscriptionBase, _ targetId As Nullable(Of Guid), _ mpEnumerationList As IList(Of ManagementPackEnumeration), _ mpReferenceslist As ManagementPackReferenceCollection _ ) |
C# |
---|
void InsertSubscription ( Guid managementPackId, IWorkflowSubscriptionBase workflowOrNotificationSubscription, Nullable<Guid> targetId, IList<ManagementPackEnumeration> mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist ) |
C++ |
---|
void InsertSubscription ( Guid managementPackId, IWorkflowSubscriptionBase^ workflowOrNotificationSubscription, Nullable<Guid> targetId, IList<ManagementPackEnumeration^>^ mpEnumerationList, ManagementPackReferenceCollection^ mpReferenceslist ) |
J# |
---|
void InsertSubscription ( Guid managementPackId, IWorkflowSubscriptionBase workflowOrNotificationSubscription, Nullable<Guid> targetId, IList<ManagementPackEnumeration> mpEnumerationList, ManagementPackReferenceCollection mpReferenceslist ) |
JScript |
---|
function InsertSubscription ( managementPackId : Guid, workflowOrNotificationSubscription : IWorkflowSubscriptionBase, targetId : Nullable<Guid>, mpEnumerationList : IList<ManagementPackEnumeration>, mpReferenceslist : ManagementPackReferenceCollection ) |
Parameters
- managementPackId
-
Type: Guid
The management pack unique identifier.
- workflowOrNotificationSubscription
-
Type: IWorkflowSubscriptionBase
The workflow or notification subscription.
- targetId
-
Type: Guid}
The subscription target identifier.
- mpEnumerationList
-
Type: ManagementPackEnumeration}
[Noun phrase description without specifying the data type. Begin with an introductory article.]
- mpReferenceslist
-
Type: ManagementPackReferenceCollection
[Noun phrase description without specifying the data type. Begin with an introductory article.]
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.