Dela via


FarmBeatsExtensionCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{farmBeatsExtensionId}
  • Operation Id: FarmBeatsExtensions_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.AgFoodPlatform.FarmBeatsExtensionResource> GetIfExists (string farmBeatsExtensionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AgFoodPlatform.FarmBeatsExtensionResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.AgFoodPlatform.FarmBeatsExtensionResource>
Public Overridable Function GetIfExists (farmBeatsExtensionId As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of FarmBeatsExtensionResource)

Parameters

farmBeatsExtensionId
String

farmBeatsExtensionId to be queried.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

farmBeatsExtensionId is null.

Applies to