Udostępnij za pośrednictwem


PurviewEntities.SetLabelsAsync(String, RequestContent, RequestContext) Method

Definition

Set labels to a given entity.

public virtual System.Threading.Tasks.Task<Azure.Response> SetLabelsAsync (string guid, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member SetLabelsAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.SetLabelsAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SetLabelsAsync (guid As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

guid
String

The globally unique identifier of the entity.

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request context, which can override default behaviors on the request on a per-call basis.

Returns

Exceptions

guid is null.

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

Applies to