Freigeben über


EdgeSchemaReferenceCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /{resourceUri}/providers/Microsoft.Edge/schemaReferences/{schemaReferenceName}
  • Operation Id: SchemaReference_Get
  • Default Api Version: 2025-06-01
  • Resource: EdgeSchemaReferenceResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.WorkloadOrchestration.EdgeSchemaReferenceResource>> GetIfExistsAsync(string schemaReferenceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.WorkloadOrchestration.EdgeSchemaReferenceResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.WorkloadOrchestration.EdgeSchemaReferenceResource>>
Public Overridable Function GetIfExistsAsync (schemaReferenceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of EdgeSchemaReferenceResource))

Parameters

schemaReferenceName
String

The name of the SchemaReference.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

schemaReferenceName is null.

Applies to