Partilhar via


Entity.RemoveClassificationByUniqueAttribute 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 Azure.Response RemoveClassificationByUniqueAttribute (string typeName, string classificationName, string attribute = default, Azure.RequestContext context = default);
abstract member RemoveClassificationByUniqueAttribute : string * string * string * Azure.RequestContext -> Azure.Response
override this.RemoveClassificationByUniqueAttribute : string * string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function RemoveClassificationByUniqueAttribute (typeName As String, classificationName As String, Optional attribute As String = Nothing, Optional context As RequestContext = Nothing) As 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 RemoveClassificationByUniqueAttribute.

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

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

Console.WriteLine(response.Status);

This sample shows how to call RemoveClassificationByUniqueAttribute 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 = client.RemoveClassificationByUniqueAttribute("<typeName>", "<classificationName>", attribute: "<attribute>");

Console.WriteLine(response.Status);

Applies to