Share via


CommunityGalleryCollection.Exists Method

Definition

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{___location}/communityGalleries/{publicGalleryName}
  • Operation Id: CommunityGalleries_Get
  • Default Api Version: 2024-03-03
  • Resource: CommunityGalleryResource
public virtual Azure.Response<bool> Exists(Azure.Core.AzureLocation ___location, string publicGalleryName, System.Threading.CancellationToken cancellationToken = default);
abstract member Exists : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<bool>
override this.Exists : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function Exists (___location As AzureLocation, publicGalleryName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

Parameters

___location
AzureLocation

The name of Azure region.

publicGalleryName
String

The public name of the community gallery.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

publicGalleryName is null.

Applies to