Condividi tramite


ViewResourceFormatCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/views/{viewName}
  • Operation Id: Views_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.CustomerInsights.ViewResourceFormatResource> GetIfExists (string viewName, string userId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CustomerInsights.ViewResourceFormatResource>
override this.GetIfExists : string * string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CustomerInsights.ViewResourceFormatResource>
Public Overridable Function GetIfExists (viewName As String, userId As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ViewResourceFormatResource)

Parameters

viewName
String

The name of the view.

userId
String

The user ID. Use * to retrieve hub level view.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

viewName or userId is null.

Applies to