SchemaRegistryClient.GetSchemaAsync 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
GetSchemaAsync(String, CancellationToken) |
Gets the schema content associated with the schema ID from the SchemaRegistry service. |
GetSchemaAsync(String, String, Int32, CancellationToken) |
Gets the schema content associated with the group name, schema name, and version from the SchemaRegistry service. |
GetSchemaAsync(String, CancellationToken)
- Source:
- SchemaRegistryClient.cs
- Source:
- SchemaRegistryClient.cs
Gets the schema content associated with the schema ID from the SchemaRegistry service.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaRegistrySchema>> GetSchemaAsync (string schemaId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSchemaAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaRegistrySchema>>
override this.GetSchemaAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaRegistrySchema>>
Public Overridable Function GetSchemaAsync (schemaId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SchemaRegistrySchema))
Parameters
- schemaId
- String
The schema ID of the the schema from the SchemaRegistry.
- cancellationToken
- CancellationToken
The cancellation token for the operation.
Returns
The properties of the schema, including the schema content provided by the service.
Applies to
GetSchemaAsync(String, String, Int32, CancellationToken)
- Source:
- SchemaRegistryClient.cs
- Source:
- SchemaRegistryClient.cs
Gets the schema content associated with the group name, schema name, and version from the SchemaRegistry service.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaRegistrySchema>> GetSchemaAsync (string groupName, string schemaName, int schemaVersion, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSchemaAsync : string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaRegistrySchema>>
override this.GetSchemaAsync : string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaRegistrySchema>>
Public Overridable Function GetSchemaAsync (groupName As String, schemaName As String, schemaVersion As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SchemaRegistrySchema))
Parameters
- groupName
- String
Schema group under which schema is registered. Group's serialization type should match the serialization type specified in the request
- schemaName
- String
Name of schema.
- schemaVersion
- Int32
Version number of specific schema.
- cancellationToken
- CancellationToken
The cancellation token for the operation.
Returns
The properties of the schema, including the schema content provided by the service.
Applies to
Azure SDK for .NET
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro