RedisCollection.Exists(String, CancellationToken) Method

Definition

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}
  • Operation Id: Redis_Get
  • Default Api Version: 2024-11-01
  • Resource: RedisResource
C#
public virtual Azure.Response<bool> Exists(string name, System.Threading.CancellationToken cancellationToken = default);

Parameters

name
String

The name of the Redis cache.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

name is null.

Applies to

Produk Versi
Azure SDK for .NET Latest, Preview