Partilhar via


SchemaRegistryClient.RegisterSchemaAsync Método

Definição

Registra um esquema com o serviço SchemaRegistry.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaProperties>> RegisterSchemaAsync (string groupName, string schemaName, string schemaDefinition, Azure.Data.SchemaRegistry.SchemaFormat format, System.Threading.CancellationToken cancellationToken = default);
abstract member RegisterSchemaAsync : string * string * string * Azure.Data.SchemaRegistry.SchemaFormat * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaProperties>>
override this.RegisterSchemaAsync : string * string * string * Azure.Data.SchemaRegistry.SchemaFormat * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.SchemaRegistry.SchemaProperties>>
Public Overridable Function RegisterSchemaAsync (groupName As String, schemaName As String, schemaDefinition As String, format As SchemaFormat, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SchemaProperties))

Parâmetros

groupName
String

O nome do grupo SchemaRegistry.

schemaName
String

O nome do esquema.

schemaDefinition
String

A representação de cadeia de caracteres do conteúdo do esquema.

format
SchemaFormat

O formato de serialização do esquema.

cancellationToken
CancellationToken

O token de cancelamento para a operação.

Retornos

As propriedades do esquema.

Aplica-se a