你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridPublisherClientExtensions.SendCloudNativeCloudEvent 方法

定义

将一组 CloudEvent 发布到事件网格主题。

public static Azure.Response SendCloudNativeCloudEvent (this Azure.Messaging.EventGrid.EventGridPublisherClient client, CloudNative.CloudEvents.CloudEvent cloudEvent, System.Threading.CancellationToken cancellationToken = default);
static member SendCloudNativeCloudEvent : Azure.Messaging.EventGrid.EventGridPublisherClient * CloudNative.CloudEvents.CloudEvent * System.Threading.CancellationToken -> Azure.Response
<Extension()>
Public Function SendCloudNativeCloudEvent (client As EventGridPublisherClient, cloudEvent As CloudEvent, Optional cancellationToken As CancellationToken = Nothing) As Response

参数

client
EventGridPublisherClient

EventGridPublisherClient 扩展的实例。

cloudEvent
CloudNative.CloudEvents.CloudEvent

要发布到事件网格的事件。

cancellationToken
CancellationToken

一个可选的取消令牌实例,用于向取消操作的请求发出信号。

返回

适用于