Partilhar via


Entity.RemoveBusinessMetadataAttributes Method

Definition

Overloads

RemoveBusinessMetadataAttributes(String, String, RequestContent, RequestContext)

[Protocol Method] Delete business metadata attributes from an entity.

RemoveBusinessMetadataAttributes(String, String, IDictionary<String,BinaryData>, CancellationToken)

Delete business metadata attributes from an entity.

RemoveBusinessMetadataAttributes(String, String, RequestContent, RequestContext)

Source:
Entity.cs

[Protocol Method] Delete business metadata attributes from an entity.

public virtual Azure.Response RemoveBusinessMetadataAttributes (string guid, string businessMetadataName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member RemoveBusinessMetadataAttributes : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.RemoveBusinessMetadataAttributes : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function RemoveBusinessMetadataAttributes (guid As String, businessMetadataName As String, content As RequestContent, Optional context As RequestContext = Nothing) As Response

Parameters

guid
String

The globally unique identifier of the entity.

businessMetadataName
String

BusinessMetadata name.

content
RequestContent

The content to send as the body of the request.

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, businessMetadataName or content is null.

guid or businessMetadataName 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 RemoveBusinessMetadataAttributes.

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

using RequestContent content = RequestContent.Create(new
{
    key = new object(),
});
Response response = client.RemoveBusinessMetadataAttributes("<guid>", "<businessMetadataName>", content);

Console.WriteLine(response.Status);

This sample shows how to call RemoveBusinessMetadataAttributes with all parameters and request content.

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

using RequestContent content = RequestContent.Create(new
{
    key = new object(),
});
Response response = client.RemoveBusinessMetadataAttributes("<guid>", "<businessMetadataName>", content);

Console.WriteLine(response.Status);

Applies to

RemoveBusinessMetadataAttributes(String, String, IDictionary<String,BinaryData>, CancellationToken)

Source:
Entity.cs

Delete business metadata attributes from an entity.

public virtual Azure.Response RemoveBusinessMetadataAttributes (string guid, string businessMetadataName, System.Collections.Generic.IDictionary<string,BinaryData> body, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveBusinessMetadataAttributes : string * string * System.Collections.Generic.IDictionary<string, BinaryData> * System.Threading.CancellationToken -> Azure.Response
override this.RemoveBusinessMetadataAttributes : string * string * System.Collections.Generic.IDictionary<string, BinaryData> * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function RemoveBusinessMetadataAttributes (guid As String, businessMetadataName As String, body As IDictionary(Of String, BinaryData), Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

guid
String

The globally unique identifier of the entity.

businessMetadataName
String

BusinessMetadata name.

body
IDictionary<String,BinaryData>

Business metadata attribute payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

guid, businessMetadataName or body is null.

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

Examples

This sample shows how to call RemoveBusinessMetadataAttributes.

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

Response response = client.RemoveBusinessMetadataAttributes("<guid>", "<businessMetadataName>", new Dictionary<string, BinaryData>
{
    ["key"] = BinaryData.FromObjectAsJson(new object())
});

This sample shows how to call RemoveBusinessMetadataAttributes 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.RemoveBusinessMetadataAttributes("<guid>", "<businessMetadataName>", new Dictionary<string, BinaryData>
{
    ["key"] = BinaryData.FromObjectAsJson(new object())
});

Applies to