Dela via


EventHubsSchemaGroupCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}
  • Operation Id: SchemaRegistry_Get
  • Default Api Version: 2024-01-01
  • Resource: EventHubsSchemaGroupResource
public virtual Azure.NullableResponse<Azure.ResourceManager.EventHubs.EventHubsSchemaGroupResource> GetIfExists (string schemaGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.EventHubs.EventHubsSchemaGroupResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.EventHubs.EventHubsSchemaGroupResource>
Public Overridable Function GetIfExists (schemaGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of EventHubsSchemaGroupResource)

Parameters

schemaGroupName
String

The Schema Group name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

schemaGroupName is an empty string, and was expected to be non-empty.

schemaGroupName is null.

Applies to