次の方法で共有


EventGridExtensions.GetEventSubscriptionAsync メソッド

定義

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

  • 要求パス/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}
  • 操作IdEventSubscriptions_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.EventSubscriptionResource>> GetEventSubscriptionAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string eventSubscriptionName, System.Threading.CancellationToken cancellationToken = default);
static member GetEventSubscriptionAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.EventSubscriptionResource>>
<Extension()>
Public Function GetEventSubscriptionAsync (client As ArmClient, scope As ResourceIdentifier, eventSubscriptionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EventSubscriptionResource))

パラメーター

client
ArmClient

ArmClientメソッドが実行されるインスタンス。

scope
ResourceIdentifier

リソースが適用されるスコープ。

eventSubscriptionName
String

イベント サブスクリプションの名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

eventSubscriptionName が null です。

適用対象