ClientNotificationHttpClient.RegisterNotificationAsync Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: Microsoft.VisualStudio.Services.ClientNotification.Client
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Syntax
'Declaration
Public Overridable Function RegisterNotificationAsync ( _
context As NotificationContext, _
id As String, _
userState As Object _
) As Task(Of ClientNotificationSubscription)
public virtual Task<ClientNotificationSubscription> RegisterNotificationAsync(
NotificationContext context,
string id,
Object userState
)
public:
virtual Task<ClientNotificationSubscription^>^ RegisterNotificationAsync(
NotificationContext^ context,
String^ id,
Object^ userState
)
abstract RegisterNotificationAsync :
context:NotificationContext *
id:string *
userState:Object -> Task<ClientNotificationSubscription>
override RegisterNotificationAsync :
context:NotificationContext *
id:string *
userState:Object -> Task<ClientNotificationSubscription>
public function RegisterNotificationAsync(
context : NotificationContext,
id : String,
userState : Object
) : Task<ClientNotificationSubscription>
Parameters
- id
Type: System.String
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<ClientNotificationSubscription>
.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
ClientNotificationHttpClient Class
Microsoft.VisualStudio.Services.ClientNotification.Client Namespace