你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EventGridPublisherClient.SendEvents 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SendEvents(IEnumerable<CloudEvent>, CancellationToken) |
将一组 CloudEvent 发布到事件网格主题。 |
SendEvents(IEnumerable<EventGridEvent>, CancellationToken) |
将一组 EventGridEvent 发布到事件网格主题。 |
SendEvents(IEnumerable<BinaryData>, CancellationToken) |
将一组自定义架构事件发布到事件网格主题。 |
SendEvents(IEnumerable<CloudEvent>, String, CancellationToken) |
将一组 CloudEvent 发布到事件网格主题。 |
SendEvents(IEnumerable<CloudEvent>, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将一组 CloudEvent 发布到事件网格主题。
public virtual Azure.Response SendEvents (System.Collections.Generic.IEnumerable<Azure.Messaging.CloudEvent> cloudEvents, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvents : seq<Azure.Messaging.CloudEvent> * System.Threading.CancellationToken -> Azure.Response
override this.SendEvents : seq<Azure.Messaging.CloudEvent> * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvents (cloudEvents As IEnumerable(Of CloudEvent), Optional cancellationToken As CancellationToken = Nothing) As Response
参数
- cloudEvents
- IEnumerable<CloudEvent>
要发布到事件网格的事件集。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。
返回
适用于
SendEvents(IEnumerable<EventGridEvent>, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将一组 EventGridEvent 发布到事件网格主题。
public virtual Azure.Response SendEvents (System.Collections.Generic.IEnumerable<Azure.Messaging.EventGrid.EventGridEvent> eventGridEvents, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvents : seq<Azure.Messaging.EventGrid.EventGridEvent> * System.Threading.CancellationToken -> Azure.Response
override this.SendEvents : seq<Azure.Messaging.EventGrid.EventGridEvent> * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvents (eventGridEvents As IEnumerable(Of EventGridEvent), Optional cancellationToken As CancellationToken = Nothing) As Response
参数
- eventGridEvents
- IEnumerable<EventGridEvent>
要发布到事件网格的事件集。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。
返回
适用于
SendEvents(IEnumerable<BinaryData>, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将一组自定义架构事件发布到事件网格主题。
public virtual Azure.Response SendEvents (System.Collections.Generic.IEnumerable<BinaryData> customEvents, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvents : seq<BinaryData> * System.Threading.CancellationToken -> Azure.Response
override this.SendEvents : seq<BinaryData> * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvents (customEvents As IEnumerable(Of BinaryData), Optional cancellationToken As CancellationToken = Nothing) As Response
参数
- customEvents
- IEnumerable<BinaryData>
要发布到事件网格的自定义架构事件集。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。
返回
适用于
SendEvents(IEnumerable<CloudEvent>, String, CancellationToken)
- Source:
- EventGridPublisherClient.cs
- Source:
- EventGridPublisherClient.cs
将一组 CloudEvent 发布到事件网格主题。
public virtual Azure.Response SendEvents (System.Collections.Generic.IEnumerable<Azure.Messaging.CloudEvent> cloudEvents, string channelName, System.Threading.CancellationToken cancellationToken = default);
abstract member SendEvents : seq<Azure.Messaging.CloudEvent> * string * System.Threading.CancellationToken -> Azure.Response
override this.SendEvents : seq<Azure.Messaging.CloudEvent> * string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendEvents (cloudEvents As IEnumerable(Of CloudEvent), channelName As String, Optional cancellationToken As CancellationToken = Nothing) As Response
参数
- cloudEvents
- IEnumerable<CloudEvent>
要发布到事件网格的事件集。
- channelName
- String
将事件发布到的合作伙伴主题通道。
- cancellationToken
- CancellationToken
一个可选的取消令牌实例,用于向取消操作的请求发出信号。