WidgetTypeResourceFormatCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/widgetTypes/{widgetTypeName}
  • Operation Id: WidgetTypes_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.CustomerInsights.WidgetTypeResourceFormatResource> GetIfExists (string widgetTypeName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CustomerInsights.WidgetTypeResourceFormatResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CustomerInsights.WidgetTypeResourceFormatResource>
Public Overridable Function GetIfExists (widgetTypeName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(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