Share via


SearchServiceResource.AddTagAsync(String, String, CancellationToken) Method

Definition

Add a tag to the current resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}
  • Operation Id: Services_Get
  • Default Api Version: 2024-03-01-preview
  • Resource: SearchServiceResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.SearchServiceResource>> AddTagAsync (string key, string value, System.Threading.CancellationToken cancellationToken = default);

Parameters

key
String

The key for the tag.

value
String

The value for the tag.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

key or value is null.

Applies to

Product Versions
Azure SDK for .NET Latest, Preview