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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET