WidgetTypeResourceFormatCollection.GetAsync(String, CancellationToken) Method

Definition

Gets a widget type in the specified hub.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes/{widgetTypeName}
  • Operation Id: WidgetTypes_Get
  • Default Api Version: 2017-04-26
  • Resource: WidgetTypeResourceFormatResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.WidgetTypeResourceFormatResource>> GetAsync(string widgetTypeName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.WidgetTypeResourceFormatResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.WidgetTypeResourceFormatResource>>
Public Overridable Function GetAsync (widgetTypeName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WidgetTypeResourceFormatResource))

Parameters

widgetTypeName
String

The name of the widget type.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

widgetTypeName is null.

Applies to