次の方法で共有


EventGridExtensions.GetEventGridTopicAsync メソッド

定義

トピックのプロパティを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}
  • 操作IdTopics_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.EventGridTopicResource>> GetEventGridTopicAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string topicName, System.Threading.CancellationToken cancellationToken = default);
static member GetEventGridTopicAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.EventGridTopicResource>>
<Extension()>
Public Function GetEventGridTopicAsync (resourceGroupResource As ResourceGroupResource, topicName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EventGridTopicResource))

パラメーター

resourceGroupResource
ResourceGroupResource

ResourceGroupResourceメソッドが実行するインスタンス。

topicName
String

トピックの名前。

cancellationToken
CancellationToken

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

戻り値

例外

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

topicName が null です。

適用対象