TeamFoundationNotificationService.GetEventSubscriptions Method (TeamFoundationRequestContext, IdentityDescriptor)
GetEventSubscriptions is used to retrieve a set of subscriptions for a specific user or all users.
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 _
) As List(Of Subscription)
public List<Subscription> GetEventSubscriptions(
TeamFoundationRequestContext requestContext,
IdentityDescriptor user
)
public:
virtual List<Subscription^>^ GetEventSubscriptions(
TeamFoundationRequestContext^ requestContext,
IdentityDescriptor^ user
) sealed
abstract GetEventSubscriptions :
requestContext:TeamFoundationRequestContext *
user:IdentityDescriptor -> List<Subscription>
override GetEventSubscriptions :
requestContext:TeamFoundationRequestContext *
user:IdentityDescriptor -> List<Subscription>
public final function GetEventSubscriptions(
requestContext : TeamFoundationRequestContext,
user : IdentityDescriptor
) : 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.
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