次の方法で共有


EventGridTopicResource.GetTopicEventSubscriptionAsync メソッド

定義

トピックのイベント サブスクリプションのプロパティを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}
  • 操作IdTopicEventSubscriptions_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.TopicEventSubscriptionResource>> GetTopicEventSubscriptionAsync (string eventSubscriptionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTopicEventSubscriptionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.TopicEventSubscriptionResource>>
override this.GetTopicEventSubscriptionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.TopicEventSubscriptionResource>>
Public Overridable Function GetTopicEventSubscriptionAsync (eventSubscriptionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TopicEventSubscriptionResource))

パラメーター

eventSubscriptionName
String

見つかるイベント サブスクリプションの名前。 イベント サブスクリプション名の長さは 3 から 100 文字で、英数字のみを使用する必要があります。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

eventSubscriptionName は空の文字列であり、空でないと予想されていました。

eventSubscriptionName が null です。

適用対象