TeamFoundationNotificationService.GetEventSubscriptions Method (TeamFoundationRequestContext, IdentityDescriptor, String)
GetEventSubscriptions is used to retrieve a set of subscriptions for a specific user or all users. This overload also allows the caller to supply a classification filter.
Namespace: Microsoft.TeamFoundation.Server.Core
Assembly: Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)
Syntax
'Declaration
Public Function GetEventSubscriptions ( _
requestContext As TeamFoundationRequestContext, _
user As IdentityDescriptor, _
classification As String _
) As List(Of Subscription)
public List<Subscription> GetEventSubscriptions(
TeamFoundationRequestContext requestContext,
IdentityDescriptor user,
string classification
)
public:
virtual List<Subscription^>^ GetEventSubscriptions(
TeamFoundationRequestContext^ requestContext,
IdentityDescriptor^ user,
String^ classification
) sealed
abstract GetEventSubscriptions :
requestContext:TeamFoundationRequestContext *
user:IdentityDescriptor *
classification:string -> List<Subscription>
override GetEventSubscriptions :
requestContext:TeamFoundationRequestContext *
user:IdentityDescriptor *
classification:string -> List<Subscription>
public final function GetEventSubscriptions(
requestContext : TeamFoundationRequestContext,
user : IdentityDescriptor,
classification : String
) : List<Subscription>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe context this operation is run.
user
Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptorOptional: User to filter the set of subscriptions too. If the caller passes null for the identity all subscriptions are returned. The caller will need to have read permission to the subscription to see it.
classification
Type: System.StringOptional: Filter subscriptions to a specific classification.
Return Value
Type: System.Collections.Generic.List<Subscription>
The set of subscriptions that match the filter.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TeamFoundationNotificationService Class