ContentSafetyClientBuilderExtensions.AddContentSafetyClient 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
AddContentSafetyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration) |
Registers a ContentSafetyClient instance. |
AddContentSafetyClient<TBuilder>(TBuilder, Uri) |
Registers a ContentSafetyClient instance. |
AddContentSafetyClient<TBuilder>(TBuilder, Uri, AzureKeyCredential) |
Registers a ContentSafetyClient instance. |
AddContentSafetyClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)
Registers a ContentSafetyClient instance.
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)
Type Parameters
- TBuilder
- TConfiguration
Parameters
- builder
- TBuilder
The builder to register with.
- configuration
- TConfiguration
The configuration values.
Returns
Applies to
AddContentSafetyClient<TBuilder>(TBuilder, Uri)
Registers a ContentSafetyClient instance.
public static Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.ContentSafety.ContentSafetyClient,Azure.AI.ContentSafety.ContentSafetyClientOptions> AddContentSafetyClient<TBuilder> (this TBuilder builder, Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential;
static member AddContentSafetyClient : 'Builder * Uri -> Azure.Core.Extensions.IAzureClientBuilder<Azure.AI.ContentSafety.ContentSafetyClient, Azure.AI.ContentSafety.ContentSafetyClientOptions> (requires 'Builder :> Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential)
<Extension()>
Public Function AddContentSafetyClient(Of TBuilder As IAzureClientFactoryBuilderWithCredential) (builder As TBuilder, endpoint As Uri) As IAzureClientBuilder(Of ContentSafetyClient, ContentSafetyClientOptions)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- endpoint
- Uri
Supported Cognitive Services endpoints (protocol and hostname, for example: https://<resource-name>.cognitiveservices.azure.com).
Returns
Applies to
AddContentSafetyClient<TBuilder>(TBuilder, Uri, AzureKeyCredential)
Registers a ContentSafetyClient instance.
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)
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
The builder to register with.
- endpoint
- Uri
Supported Cognitive Services endpoints (protocol and hostname, for example: https://<resource-name>.cognitiveservices.azure.com).
- credential
- AzureKeyCredential
A credential used to authenticate to an Azure Service.
Returns
Applies to
Azure SDK for .NET
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour