Freigeben über


NamespaceTopicCollection.GetAsync(String, CancellationToken) Methode

Definition

Ruft Eigenschaften eines Namespacethemas ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}
  • Vorgang IdNamespaceTopics_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.NamespaceTopicResource>> GetAsync (string topicName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.NamespaceTopicResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.EventGrid.NamespaceTopicResource>>
Public Overridable Function GetAsync (topicName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NamespaceTopicResource))

Parameter

topicName
String

Name des Namespacethemas.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

topicName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

topicName ist NULL.

Gilt für: