Entity.GetBusinessMetadataTemplateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetBusinessMetadataTemplateAsync(RequestContext) |
[Protocol Method] Get the sample Template for uploading/creating bulk BusinessMetaData
|
GetBusinessMetadataTemplateAsync(CancellationToken) |
Get the sample Template for uploading/creating bulk BusinessMetaData. |
GetBusinessMetadataTemplateAsync(RequestContext)
- Source:
- Entity.cs
[Protocol Method] Get the sample Template for uploading/creating bulk BusinessMetaData
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetBusinessMetadataTemplateAsync(CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> GetBusinessMetadataTemplateAsync (Azure.RequestContext context);
abstract member GetBusinessMetadataTemplateAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetBusinessMetadataTemplateAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetBusinessMetadataTemplateAsync (context As RequestContext) As Task(Of 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 GetBusinessMetadataTemplateAsync 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 = await client.GetBusinessMetadataTemplateAsync(null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());
This sample shows how to call GetBusinessMetadataTemplateAsync 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 = await client.GetBusinessMetadataTemplateAsync(null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());
Applies to
GetBusinessMetadataTemplateAsync(CancellationToken)
- Source:
- Entity.cs
Get the sample Template for uploading/creating bulk BusinessMetaData.
public virtual System.Threading.Tasks.Task<Azure.Response<BinaryData>> GetBusinessMetadataTemplateAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetBusinessMetadataTemplateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
override this.GetBusinessMetadataTemplateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
Public Overridable Function GetBusinessMetadataTemplateAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BinaryData))
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Examples
This sample shows how to call GetBusinessMetadataTemplateAsync.
Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
Entity client = new DataMapClient(endpoint, credential).GetEntityClient();
Response<BinaryData> response = await client.GetBusinessMetadataTemplateAsync();
This sample shows how to call GetBusinessMetadataTemplateAsync 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 = await client.GetBusinessMetadataTemplateAsync();
Applies to
Azure SDK for .NET