共用方式為


ClientNotificationHttpClient.PostNotificationAsync 方法

命名空間:  Microsoft.VisualStudio.Services.ClientNotification.Client
組件:  Microsoft.VisualStudio.Services.WebApi (在 Microsoft.VisualStudio.Services.WebApi.dll 中)

語法

'宣告
Public Function PostNotificationAsync ( _
    message As NotificationMessage, _
    identityId As Guid, _
    userState As Object, _
    cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
public Task<HttpResponseMessage> PostNotificationAsync(
    NotificationMessage message,
    Guid identityId,
    Object userState,
    CancellationToken cancellationToken
)

參數

傳回值

類型:System.Threading.Tasks.Task<HttpResponseMessage>

.NET Framework 安全性

請參閱

參考

ClientNotificationHttpClient 類別

Microsoft.VisualStudio.Services.ClientNotification.Client 命名空間