Share via


Entity.GetBusinessMetadataTemplate Method

Definition

Overloads

GetBusinessMetadataTemplate(RequestContext)

[Protocol Method] Get the sample Template for uploading/creating bulk BusinessMetaData

GetBusinessMetadataTemplate(CancellationToken)

Get the sample Template for uploading/creating bulk BusinessMetaData.

GetBusinessMetadataTemplate(RequestContext)

Source:
Entity.cs

[Protocol Method] Get the sample Template for uploading/creating bulk BusinessMetaData

public virtual Azure.Response GetBusinessMetadataTemplate (Azure.RequestContext context);
abstract member GetBusinessMetadataTemplate : Azure.RequestContext -> Azure.Response
override this.GetBusinessMetadataTemplate : Azure.RequestContext -> Azure.Response
Public Overridable Function GetBusinessMetadataTemplate (context As RequestContext) As Response

Parameters

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

Service returned a non-success status code.

Examples

This sample shows how to call GetBusinessMetadataTemplate and parse the result.

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

Response response = client.GetBusinessMetadataTemplate(null);

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());

This sample shows how to call GetBusinessMetadataTemplate with all parameters and parse the result.

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

Response response = client.GetBusinessMetadataTemplate(null);

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());

Applies to

GetBusinessMetadataTemplate(CancellationToken)

Source:
Entity.cs

Get the sample Template for uploading/creating bulk BusinessMetaData.

public virtual Azure.Response<BinaryData> GetBusinessMetadataTemplate (System.Threading.CancellationToken cancellationToken = default);
abstract member GetBusinessMetadataTemplate : System.Threading.CancellationToken -> Azure.Response<BinaryData>
override this.GetBusinessMetadataTemplate : System.Threading.CancellationToken -> Azure.Response<BinaryData>
Public Overridable Function GetBusinessMetadataTemplate (Optional cancellationToken As CancellationToken = Nothing) As Response(Of BinaryData)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetBusinessMetadataTemplate.

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

Response<BinaryData> response = client.GetBusinessMetadataTemplate();

This sample shows how to call GetBusinessMetadataTemplate with all parameters.

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

Response<BinaryData> response = client.GetBusinessMetadataTemplate();

Applies to