Compartilhar via


ContentSafetyClientBuilderExtensions.AddContentSafetyClient Método

Definição

Sobrecargas

AddContentSafetyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registra uma ContentSafetyClient instância.

AddContentSafetyClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Registra uma ContentSafetyClient instância.

AddContentSafetyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registra uma ContentSafetyClient instância.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.ContentSafety.ContentSafetyClient,Azure.AI.ContentSafety.ContentSafetyClientOptions> AddContentSafetyClient<TBuilder,TConfiguration> (this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<TConfiguration>;
static member AddContentSafetyClient : 'Builder * 'Configuration -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.ContentSafety.ContentSafetyClient, Azure.AI.ContentSafety.ContentSafetyClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration<'Configuration>)
<Extension()>
Public Function AddContentSafetyClient(Of TBuilder As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration), TConfiguration As IAzureClientFactoryBuilderWithConfiguration(Of TConfiguration)) (builder As TBuilder, configuration As TConfiguration) As IAzureClientBuilder(Of ContentSafetyClient, ContentSafetyClientOptions)

Parâmetros de tipo

TBuilder
TConfiguration

Parâmetros

builder
TBuilder

O construtor com o qual se registrar.

configuration
TConfiguration

Os valores de configuração.

Retornos

Aplica-se a

AddContentSafetyClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)

Registra uma ContentSafetyClient instância.

public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.ContentSafety.ContentSafetyClient,Azure.AI.ContentSafety.ContentSafetyClientOptions> AddContentSafetyClient<TBuilder> (this TBuilder builder, Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder;
static member AddContentSafetyClient : 'Builder * Uri * Azure.AzureKeyCredential -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.ContentSafety.ContentSafetyClient, Azure.AI.ContentSafety.ContentSafetyClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilder)
<Extension()>
Public Function AddContentSafetyClient(Of TBuilder As IAzureClientFactoryBuilder) (builder As TBuilder, endpoint As Uri, credential As AzureKeyCredential) As IAzureClientBuilder(Of ContentSafetyClient, ContentSafetyClientOptions)

Parâmetros de tipo

TBuilder

Parâmetros

builder
TBuilder

O construtor com o qual se registrar.

endpoint
Uri

Pontos de extremidade dos Serviços Cognitivos com suporte (protocolo e nome do host, por exemplo: https://< resource-name.cognitiveservices.azure.com>).

credential
AzureKeyCredential

Uma credencial usada para autenticar em um Serviço do Azure.

Retornos

Aplica-se a