Partilhar via


EdgeContextCollection.GetAsync(String, CancellationToken) Method

Definition

Get Context Resource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Edge/contexts/{contextName}
  • Operation Id: Context_Get
  • Default Api Version: 2025-06-01
  • Resource: EdgeContextResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource>> GetAsync(string contextName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource>>
Public Overridable Function GetAsync (contextName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of EdgeContextResource))

Parameters

contextName
String

The name of the Context.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

contextName is null.

Applies to