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