BlocklistClient Constructors
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
BlocklistClient() |
Initializes a new instance of BlocklistClient for mocking. |
BlocklistClient(Uri, AzureKeyCredential) |
Initializes a new instance of BlocklistClient. |
BlocklistClient(Uri, TokenCredential) |
Initializes a new instance of BlocklistClient. |
BlocklistClient(Uri, AzureKeyCredential, ContentSafetyClientOptions) |
Initializes a new instance of BlocklistClient. |
BlocklistClient(Uri, TokenCredential, ContentSafetyClientOptions) |
Initializes a new instance of BlocklistClient. |
BlocklistClient()
- Source:
- BlocklistClient.cs
Initializes a new instance of BlocklistClient for mocking.
protected BlocklistClient ();
Protected Sub New ()
Applies to
BlocklistClient(Uri, AzureKeyCredential)
- Source:
- BlocklistClient.cs
Initializes a new instance of BlocklistClient.
public BlocklistClient (Uri endpoint, Azure.AzureKeyCredential credential);
new Azure.AI.ContentSafety.BlocklistClient : Uri * Azure.AzureKeyCredential -> Azure.AI.ContentSafety.BlocklistClient
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
BlocklistClient(Uri, TokenCredential)
- Source:
- BlocklistClient.cs
Initializes a new instance of BlocklistClient.
public BlocklistClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.ContentSafety.BlocklistClient : Uri * Azure.Core.TokenCredential -> Azure.AI.ContentSafety.BlocklistClient
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
BlocklistClient(Uri, AzureKeyCredential, ContentSafetyClientOptions)
- Source:
- BlocklistClient.cs
Initializes a new instance of BlocklistClient.
public BlocklistClient (Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.ContentSafety.ContentSafetyClientOptions options);
new Azure.AI.ContentSafety.BlocklistClient : Uri * Azure.AzureKeyCredential * Azure.AI.ContentSafety.ContentSafetyClientOptions -> Azure.AI.ContentSafety.BlocklistClient
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
BlocklistClient(Uri, TokenCredential, ContentSafetyClientOptions)
- Source:
- BlocklistClient.cs
Initializes a new instance of BlocklistClient.
public BlocklistClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.ContentSafety.ContentSafetyClientOptions options);
new Azure.AI.ContentSafety.BlocklistClient : Uri * Azure.Core.TokenCredential * Azure.AI.ContentSafety.ContentSafetyClientOptions -> Azure.AI.ContentSafety.BlocklistClient
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
Azure SDK for .NET