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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET