Freigeben über


EdgeContextCollection.Get(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 Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource> Get(string contextName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.WorkloadOrchestration.EdgeContextResource>
Public Overridable Function Get (contextName As String, Optional cancellationToken As CancellationToken = Nothing) As 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