Share via


ContentSafetyClient Constructors

Definition

Overloads

ContentSafetyClient()

Initializes a new instance of ContentSafetyClient for mocking.

ContentSafetyClient(Uri, AzureKeyCredential)

Initializes a new instance of ContentSafetyClient.

ContentSafetyClient(Uri, TokenCredential)

Initializes a new instance of ContentSafetyClient.

ContentSafetyClient(Uri, AzureKeyCredential, ContentSafetyClientOptions)

Initializes a new instance of ContentSafetyClient.

ContentSafetyClient(Uri, TokenCredential, ContentSafetyClientOptions)

Initializes a new instance of ContentSafetyClient.

ContentSafetyClient()

Source:
ContentSafetyClient.cs
Source:
ContentSafetyClient.cs

Initializes a new instance of ContentSafetyClient for mocking.

protected ContentSafetyClient ();
Protected Sub New ()

Applies to

ContentSafetyClient(Uri, AzureKeyCredential)

Source:
ContentSafetyClient.cs
Source:
ContentSafetyClient.cs

Initializes a new instance of ContentSafetyClient.

public ContentSafetyClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.AI.ContentSafety.ContentSafetyClient : Uri * Azure.AzureKeyCredential -> Azure.AI.ContentSafety.ContentSafetyClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential)

Parameters

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.

Exceptions

endpoint or credential is null.

Applies to

ContentSafetyClient(Uri, TokenCredential)

Source:
ContentSafetyClient.cs

Initializes a new instance of ContentSafetyClient.

public ContentSafetyClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.ContentSafety.ContentSafetyClient : Uri * Azure.Core.TokenCredential -> Azure.AI.ContentSafety.ContentSafetyClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

Supported Cognitive Services endpoints (protocol and hostname, for example: https://<resource-name>.cognitiveservices.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

ContentSafetyClient(Uri, AzureKeyCredential, ContentSafetyClientOptions)

Source:
ContentSafetyClient.cs
Source:
ContentSafetyClient.cs

Initializes a new instance of ContentSafetyClient.

public ContentSafetyClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.ContentSafety.ContentSafetyClientOptions options);
new Azure.AI.ContentSafety.ContentSafetyClient : Uri * Azure.AzureKeyCredential * Azure.AI.ContentSafety.ContentSafetyClientOptions -> Azure.AI.ContentSafety.ContentSafetyClient
Public Sub New (endpoint As Uri, credential As AzureKeyCredential, options As ContentSafetyClientOptions)

Parameters

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.

options
ContentSafetyClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to

ContentSafetyClient(Uri, TokenCredential, ContentSafetyClientOptions)

Source:
ContentSafetyClient.cs

Initializes a new instance of ContentSafetyClient.

public ContentSafetyClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.ContentSafety.ContentSafetyClientOptions options);
new Azure.AI.ContentSafety.ContentSafetyClient : Uri * Azure.Core.TokenCredential * Azure.AI.ContentSafety.ContentSafetyClientOptions -> Azure.AI.ContentSafety.ContentSafetyClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As ContentSafetyClientOptions)

Parameters

endpoint
Uri

Supported Cognitive Services endpoints (protocol and hostname, for example: https://<resource-name>.cognitiveservices.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
ContentSafetyClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to