共用方式為


PredictionResourceFormatCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

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

Parameters

predictionName
String

The name of the Prediction.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

predictionName is null.

Applies to