ShareFilesStorageResourceProvider 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
ShareFilesStorageResourceProvider() |
Default constrctor. |
ShareFilesStorageResourceProvider(AzureSasCredential) |
Constructs this provider to use the given credential when making a new File Share StorageResource. This instance will use the given AzureSasCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this credential. |
ShareFilesStorageResourceProvider(TokenCredential) |
Constructs this provider to use the given credential when making a new File Share StorageResource. This instance will use the given TokenCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, TokenCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). |
ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetAzureSasCredential) |
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource. This instance will use the given ShareFilesStorageResourceProvider.GetAzureSasCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this delegate. |
ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetStorageSharedKeyCredential) |
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share see cref="StorageResource"/>. This instance will use the given ShareFilesStorageResourceProvider.GetStorageSharedKeyCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). |
ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetTokenCredential) |
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource. This instance will use the given ShareFilesStorageResourceProvider.GetTokenCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, TokenCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). |
ShareFilesStorageResourceProvider(StorageSharedKeyCredential) |
Constructs this provider to use the given credential when making a new File Share StorageResource. This instance will use the given StorageSharedKeyCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). |
ShareFilesStorageResourceProvider(Func<Uri,CancellationToken,ValueTask<AzureSasCredential>>) |
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource. This instance will use the given callback to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this delegate. |
ShareFilesStorageResourceProvider(Func<Uri,CancellationToken,ValueTask<StorageSharedKeyCredential>>) |
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share see cref="StorageResource"/>. This instance will use the given callback to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). |
ShareFilesStorageResourceProvider()
Default constrctor.
public ShareFilesStorageResourceProvider ();
Public Sub New ()
Applies to
ShareFilesStorageResourceProvider(AzureSasCredential)
Constructs this provider to use the given credential when making a new File Share StorageResource.
This instance will use the given AzureSasCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this credential.
public ShareFilesStorageResourceProvider (Azure.AzureSasCredential credential);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Azure.AzureSasCredential -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (credential As AzureSasCredential)
Parameters
- credential
- AzureSasCredential
SAS credential to use when constructing resources.
Applies to
ShareFilesStorageResourceProvider(TokenCredential)
Constructs this provider to use the given credential when making a new File Share StorageResource.
This instance will use the given TokenCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, TokenCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).
public ShareFilesStorageResourceProvider (Azure.Core.TokenCredential credential);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Azure.Core.TokenCredential -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (credential As TokenCredential)
Parameters
- credential
- TokenCredential
Token credential to use when constructing resources.
Applies to
ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetAzureSasCredential)
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource.
This instance will use the given ShareFilesStorageResourceProvider.GetAzureSasCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this delegate.
public ShareFilesStorageResourceProvider (Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider.GetAzureSasCredential getAzureSasCredentialAsync);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider.GetAzureSasCredential -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (getAzureSasCredentialAsync As ShareFilesStorageResourceProvider.GetAzureSasCredential)
Parameters
- getAzureSasCredentialAsync
- ShareFilesStorageResourceProvider.GetAzureSasCredential
Delegate for acquiring a credential.
Applies to
ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetStorageSharedKeyCredential)
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share see cref="StorageResource"/>.
This instance will use the given ShareFilesStorageResourceProvider.GetStorageSharedKeyCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).
public ShareFilesStorageResourceProvider (Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider.GetStorageSharedKeyCredential getStorageSharedKeyCredentialAsync);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider.GetStorageSharedKeyCredential -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (getStorageSharedKeyCredentialAsync As ShareFilesStorageResourceProvider.GetStorageSharedKeyCredential)
Parameters
- getStorageSharedKeyCredentialAsync
- ShareFilesStorageResourceProvider.GetStorageSharedKeyCredential
Delegate for acquiring a credential.
Applies to
ShareFilesStorageResourceProvider(ShareFilesStorageResourceProvider+GetTokenCredential)
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource.
This instance will use the given ShareFilesStorageResourceProvider.GetTokenCredential to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, TokenCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).
public ShareFilesStorageResourceProvider (Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider.GetTokenCredential getTokenCredentialAsync);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider.GetTokenCredential -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (getTokenCredentialAsync As ShareFilesStorageResourceProvider.GetTokenCredential)
Parameters
- getTokenCredentialAsync
- ShareFilesStorageResourceProvider.GetTokenCredential
Delegate for acquiring a credential.
Applies to
ShareFilesStorageResourceProvider(StorageSharedKeyCredential)
Constructs this provider to use the given credential when making a new File Share StorageResource.
This instance will use the given StorageSharedKeyCredential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The credential will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).
public ShareFilesStorageResourceProvider (Azure.Storage.StorageSharedKeyCredential credential);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Azure.Storage.StorageSharedKeyCredential -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (credential As StorageSharedKeyCredential)
Parameters
- credential
- StorageSharedKeyCredential
Shared key credential to use when constructing resources.
Applies to
ShareFilesStorageResourceProvider(Func<Uri,CancellationToken,ValueTask<AzureSasCredential>>)
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share StorageResource.
This instance will use the given callback to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, AzureSasCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions). Additionally, if the given target share resource already has a SAS token in the URI, that token will be preferred over this delegate.
public ShareFilesStorageResourceProvider (Func<Uri,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<Azure.AzureSasCredential>> getAzureSasCredentialAsync);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Func<Uri, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<Azure.AzureSasCredential>> -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (getAzureSasCredentialAsync As Func(Of Uri, CancellationToken, ValueTask(Of AzureSasCredential)))
Parameters
- getAzureSasCredentialAsync
- Func<Uri,CancellationToken,ValueTask<AzureSasCredential>>
Callback for acquiring a credential for the given Uri.
Applies to
ShareFilesStorageResourceProvider(Func<Uri,CancellationToken,ValueTask<StorageSharedKeyCredential>>)
Constructs this provider to use the given delegate for acquiring a credential when making a new File Share see cref="StorageResource"/>.
This instance will use the given callback to fetch a credential when constructing the underlying Azure.Storage.Files.Shares client, e.g. ShareFileClient(Uri, StorageSharedKeyCredential, ShareClientOptions). The delegate will only be used when the provider needs to construct a client in the first place. It will not be used when creating a StorageResource from a pre-existing client, e.g. FromClient(ShareFileClient, ShareFileStorageResourceOptions).
public ShareFilesStorageResourceProvider (Func<Uri,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<Azure.Storage.StorageSharedKeyCredential>> getStorageSharedKeyCredentialAsync);
new Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider : Func<Uri, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<Azure.Storage.StorageSharedKeyCredential>> -> Azure.Storage.DataMovement.Files.Shares.ShareFilesStorageResourceProvider
Public Sub New (getStorageSharedKeyCredentialAsync As Func(Of Uri, CancellationToken, ValueTask(Of StorageSharedKeyCredential)))
Parameters
- getStorageSharedKeyCredentialAsync
- Func<Uri,CancellationToken,ValueTask<StorageSharedKeyCredential>>
Callback for acquiring a credential for the given Uri.
Applies to
Azure SDK for .NET