Sdílet prostřednictvím


TagOperationsExtensions.CreateOrUpdateAsync(ITagOperations, String) Method

Definition

Create a subscription resource tag.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.TagCreateResult> CreateOrUpdateAsync (this Microsoft.Azure.Management.Resources.ITagOperations operations, string tagName);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Resources.ITagOperations * string -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Resources.Models.TagCreateResult>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ITagOperations, tagName As String) As Task(Of TagCreateResult)

Parameters

operations
ITagOperations

Reference to the Microsoft.Azure.Management.Resources.ITagOperations.

tagName
String

Required. The name of the tag.

Returns

Tag information.

Applies to