ISubscriptionManagement.GetSubscriptionsByCriteria Method (ManagementPackRuleCriteria, Guid)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets workflow and notification subscriptions based on the provided criteria that is owned by the user identifier.
Namespace: Microsoft.EnterpriseManagement.Subscriptions
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)
Usage
'Usage
Dim instance As ISubscriptionManagement
Dim criteria As ManagementPackRuleCriteria
Dim userId As Guid
Dim returnValue As IList(Of IWorkflowSubscriptionBase)
returnValue = instance.GetSubscriptionsByCriteria(criteria, userId)
Syntax
'Declaration
Function GetSubscriptionsByCriteria ( _
criteria As ManagementPackRuleCriteria, _
userId As Guid _
) As IList(Of IWorkflowSubscriptionBase)
IList<IWorkflowSubscriptionBase> GetSubscriptionsByCriteria (
ManagementPackRuleCriteria criteria,
Guid userId
)
IList<IWorkflowSubscriptionBase^>^ GetSubscriptionsByCriteria (
ManagementPackRuleCriteria^ criteria,
Guid userId
)
IList<IWorkflowSubscriptionBase> GetSubscriptionsByCriteria (
ManagementPackRuleCriteria criteria,
Guid userId
)
function GetSubscriptionsByCriteria (
criteria : ManagementPackRuleCriteria,
userId : Guid
) : IList<IWorkflowSubscriptionBase>
Parameters
- criteria
The subscription search criteria.
- userId
The user identifier.
Return Value
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.
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