共用方式為


ShareClientBuilderExtensions Class

Definition

Extension methods to add ShareServiceClient client to clients builder

public static class ShareClientBuilderExtensions
type ShareClientBuilderExtensions = class
Public Module ShareClientBuilderExtensions
Inheritance
ShareClientBuilderExtensions

Methods

AddFileServiceClient<TBuilder,TConfiguration>(TBuilder, TConfiguration)

Registers a ShareServiceClient instance with connection options loaded from the provided configuration instance.

AddFileServiceClient<TBuilder>(TBuilder, String)

Registers a ShareServiceClient instance with the provided connectionString

AddFileServiceClient<TBuilder>(TBuilder, Uri, StorageSharedKeyCredential)

Registers a ShareServiceClient instance with the provided serviceUri and sharedKeyCredential

AddFileServiceClientWithCredential<TBuilder>(TBuilder, Uri)

Registers a ShareServiceClient instance with the provided serviceUri and the token credential configured using the client factory builder's UseCredential method.

Note that service-level operations do not support token credential authentication. This extension exists to allow the construction of a ShareServiceClient that can be used to derive a ShareClient that has token credential authentication.

Also note that ShareTokenIntent is currently required for token authentication.

Applies to