次の方法で共有


Entity.RemoveClassification(String, String, RequestContext) Method

Definition

[Protocol Method] Delete a given classification from an existing entity represented by a GUID.

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

Parameters

guid
String

The globally unique identifier of the entity.

classificationName
String

The name of the classification.

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

guid or classificationName is null.

guid 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 RemoveClassification.

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

Response response = client.RemoveClassification("<guid>", "<classificationName>");

Console.WriteLine(response.Status);

This sample shows how to call RemoveClassification 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.RemoveClassification("<guid>", "<classificationName>");

Console.WriteLine(response.Status);

Applies to