BookshelfClient 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
| Name | Description |
|---|---|
| BookshelfClient() |
Initializes a new instance of BookshelfClient for mocking. |
| BookshelfClient(BookshelfClientSettings) |
Initializes a new instance of BookshelfClient from a BookshelfClientSettings. |
| BookshelfClient(Uri, TokenCredential) |
Initializes a new instance of BookshelfClient. |
| BookshelfClient(Uri, TokenCredential, BookshelfClientOptions) |
Initializes a new instance of BookshelfClient. |
BookshelfClient()
- Source:
- BookshelfClient.cs
Initializes a new instance of BookshelfClient for mocking.
protected BookshelfClient();
Protected Sub New ()
Applies to
BookshelfClient(BookshelfClientSettings)
- Source:
- BookshelfClient.cs
Initializes a new instance of BookshelfClient from a BookshelfClientSettings.
public BookshelfClient(Azure.AI.Discovery.BookshelfClientSettings settings);
new Azure.AI.Discovery.BookshelfClient : Azure.AI.Discovery.BookshelfClientSettings -> Azure.AI.Discovery.BookshelfClient
Public Sub New (settings As BookshelfClientSettings)
Parameters
- settings
- BookshelfClientSettings
The settings for BookshelfClient.
Applies to
BookshelfClient(Uri, TokenCredential)
- Source:
- BookshelfClient.cs
Initializes a new instance of BookshelfClient.
public BookshelfClient(Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.Discovery.BookshelfClient : Uri * Azure.Core.TokenCredential -> Azure.AI.Discovery.BookshelfClient
Public Sub New (endpoint As Uri, credential As TokenCredential)
Parameters
- endpoint
- Uri
Service endpoint.
- credential
- TokenCredential
A credential used to authenticate to the service.
Exceptions
endpoint or credential is null.
Applies to
BookshelfClient(Uri, TokenCredential, BookshelfClientOptions)
- Source:
- BookshelfClient.cs
Initializes a new instance of BookshelfClient.
public BookshelfClient(Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Discovery.BookshelfClientOptions options);
new Azure.AI.Discovery.BookshelfClient : Uri * Azure.Core.TokenCredential * Azure.AI.Discovery.BookshelfClientOptions -> Azure.AI.Discovery.BookshelfClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As BookshelfClientOptions)
Parameters
- endpoint
- Uri
Service endpoint.
- credential
- TokenCredential
A credential used to authenticate to the service.
- options
- BookshelfClientOptions
The options for configuring the client.
Exceptions
endpoint or credential is null.