Entity.RemoveClassificationByUniqueAttributeAsync Method

Definition

[Protocol Method] Delete a given classification from an entity identified by its type and unique attributes.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> RemoveClassificationByUniqueAttributeAsync (string typeName, string classificationName, string attribute = default, Azure.RequestContext context = default);
abstract member RemoveClassificationByUniqueAttributeAsync : string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.RemoveClassificationByUniqueAttributeAsync : string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RemoveClassificationByUniqueAttributeAsync (typeName As String, classificationName As String, Optional attribute As String = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

typeName
String

The name of the type.

classificationName
String

The name of the classification.

attribute
String

The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)

context
RequestContext

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

Returns

The response returned from the service.

Exceptions

typeName or classificationName is null.

typeName or classificationName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Examples

This sample shows how to call RemoveClassificationByUniqueAttributeAsync.

Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Entity client = new DataMapClient(endpoint, credential).GetEntityClient();

Response response = await client.RemoveClassificationByUniqueAttributeAsync("<typeName>", "<classificationName>");

Console.WriteLine(response.Status);

This sample shows how to call RemoveClassificationByUniqueAttributeAsync with all parameters.

Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Entity client = new DataMapClient(endpoint, credential).GetEntityClient();

Response response = await client.RemoveClassificationByUniqueAttributeAsync("<typeName>", "<classificationName>", attribute: "<attribute>");

Console.WriteLine(response.Status);

Applies to