Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)
Usage
Visual Basic |
---|
Dim instance As ISubscriptionManagement Dim criteria As ManagementPackRuleCriteria Dim userId As Guid Dim returnValue As IList(Of IWorkflowSubscriptionBase) returnValue = instance.GetSubscriptionsByCriteria(criteria, userId) |
Syntax
Visual Basic |
---|
Function GetSubscriptionsByCriteria ( _ criteria As ManagementPackRuleCriteria, _ userId As Guid _ ) As IList(Of IWorkflowSubscriptionBase) |
C# |
---|
IList<IWorkflowSubscriptionBase> GetSubscriptionsByCriteria ( ManagementPackRuleCriteria criteria, Guid userId ) |
C++ |
---|
IList<IWorkflowSubscriptionBase^>^ GetSubscriptionsByCriteria ( ManagementPackRuleCriteria^ criteria, Guid userId ) |
J# |
---|
IList<IWorkflowSubscriptionBase> GetSubscriptionsByCriteria ( ManagementPackRuleCriteria criteria, Guid userId ) |
JScript |
---|
function GetSubscriptionsByCriteria ( criteria : ManagementPackRuleCriteria, userId : Guid ) : IList<IWorkflowSubscriptionBase> |
Parameters
- criteria
-
Type: ManagementPackRuleCriteria
The subscription search criteria.
- userId
-
Type: Guid
The user identifier.
Return Value
Type: IList The list of subscriptions.Exceptions
Exception type | Condition |
---|---|
Exception |
The name provided by the criteria did not match an existing subscription. |
Remarks
The current user must be a Service Manager administrator for the subscriptions to be returned.
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.