EventHubClient.CreateReceiver メソッド

定義

指定 EventPositionした を使用して EventHub レシーバーを作成します。 レシーバーは、特定のコンシューマー グループから特定の EventHub パーティションに対して作成されます。

public Microsoft.Azure.EventHubs.PartitionReceiver CreateReceiver (string consumerGroupName, string partitionId, Microsoft.Azure.EventHubs.EventPosition eventPosition, Microsoft.Azure.EventHubs.ReceiverOptions receiverOptions = default);
member this.CreateReceiver : string * string * Microsoft.Azure.EventHubs.EventPosition * Microsoft.Azure.EventHubs.ReceiverOptions -> Microsoft.Azure.EventHubs.PartitionReceiver
Public Function CreateReceiver (consumerGroupName As String, partitionId As String, eventPosition As EventPosition, Optional receiverOptions As ReceiverOptions = Nothing) As PartitionReceiver

パラメーター

consumerGroupName
String

このレシーバーをグループ化する必要があるコンシューマー グループ名。

partitionId
String

受信側が属するパーティション ID。 受信したすべてのデータは、このパーティションからのみ取得されます。

eventPosition
EventPosition

メッセージの受信を EventPosition 開始する開始位置の 。

receiverOptions
ReceiverOptions

イベント ハブ レシーバーのオプション。

戻り値

作成された PartitionReceiver

適用対象

こちらもご覧ください