AzureComponentFactory.CreateClient 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.
Creates a new client instance using the provided configuration to map constructor parameters from. Optionally takes a set of client option and credential to use when constructing a client.
public abstract object CreateClient (Type clientType, Microsoft.Extensions.Configuration.IConfiguration configuration, Azure.Core.TokenCredential credential, object clientOptions);
abstract member CreateClient : Type * Microsoft.Extensions.Configuration.IConfiguration * Azure.Core.TokenCredential * obj -> obj
Public MustOverride Function CreateClient (clientType As Type, configuration As IConfiguration, credential As TokenCredential, clientOptions As Object) As Object
Parameters
- clientType
- Type
- configuration
- IConfiguration
The IConfiguration instance to map constructor parameters from.
- credential
- TokenCredential
The TokenCredential object to use if required by constructor, if null no .
- clientOptions
- Object
The client
Returns
Applies to
Azure SDK for .NET
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro