ShareDirectoryClient Constructors

Definition

Overloads

ShareDirectoryClient()

Initializes a new instance of the ShareDirectoryClient class for mocking.

ShareDirectoryClient(Uri, ShareClientOptions)

Initializes a new instance of the ShareDirectoryClient class.

ShareDirectoryClient(String, String, String)

Initializes a new instance of the ShareDirectoryClient class.

ShareDirectoryClient(Uri, AzureSasCredential, ShareClientOptions)

Initializes a new instance of the ShareDirectoryClient class.

ShareDirectoryClient(Uri, TokenCredential, ShareClientOptions)

Initializes a new instance of the ShareDirectoryClient class.

Note that ShareTokenIntent is currently required for token authentication.

ShareDirectoryClient(Uri, StorageSharedKeyCredential, ShareClientOptions)

Initializes a new instance of the ShareDirectoryClient class.

ShareDirectoryClient(String, String, String, ShareClientOptions)

Initializes a new instance of the ShareDirectoryClient class.

ShareDirectoryClient()

Source:
ShareDirectoryClient.cs
Source:
ShareDirectoryClient.cs

Initializes a new instance of the ShareDirectoryClient class for mocking.

protected ShareDirectoryClient ();
Protected Sub New ()

Applies to

ShareDirectoryClient(Uri, ShareClientOptions)

Source:
ShareDirectoryClient.cs
Source:
ShareDirectoryClient.cs

Initializes a new instance of the ShareDirectoryClient class.

public ShareDirectoryClient (Uri directoryUri, Azure.Storage.Files.Shares.ShareClientOptions options = default);
new Azure.Storage.Files.Shares.ShareDirectoryClient : Uri * Azure.Storage.Files.Shares.ShareClientOptions -> Azure.Storage.Files.Shares.ShareDirectoryClient
Public Sub New (directoryUri As Uri, Optional options As ShareClientOptions = Nothing)

Parameters

directoryUri
Uri

A Uri referencing the directory that includes the name of the account, the name of the share, and the path of the directory.

options
ShareClientOptions

Optional ShareClientOptions that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to

ShareDirectoryClient(String, String, String)

Source:
ShareDirectoryClient.cs
Source:
ShareDirectoryClient.cs

Initializes a new instance of the ShareDirectoryClient class.

public ShareDirectoryClient (string connectionString, string shareName, string directoryPath);
new Azure.Storage.Files.Shares.ShareDirectoryClient : string * string * string -> Azure.Storage.Files.Shares.ShareDirectoryClient
Public Sub New (connectionString As String, shareName As String, directoryPath As String)

Parameters

connectionString
String

A connection string includes the authentication information required for your application to access data in an Azure Storage account at runtime.

For more information, Configure Azure Storage connection strings

shareName
String

The name of the share in the storage account to reference.

directoryPath
String

The path of the directory in the storage account to reference.

Applies to

ShareDirectoryClient(Uri, AzureSasCredential, ShareClientOptions)

Source:
ShareDirectoryClient.cs
Source:
ShareDirectoryClient.cs

Initializes a new instance of the ShareDirectoryClient class.

public ShareDirectoryClient (Uri directoryUri, Azure.AzureSasCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = default);
new Azure.Storage.Files.Shares.ShareDirectoryClient : Uri * Azure.AzureSasCredential * Azure.Storage.Files.Shares.ShareClientOptions -> Azure.Storage.Files.Shares.ShareDirectoryClient
Public Sub New (directoryUri As Uri, credential As AzureSasCredential, Optional options As ShareClientOptions = Nothing)

Parameters

directoryUri
Uri

A Uri referencing the directory that includes the name of the account, the name of the share, and the path of the directory. Must not contain shared access signature, which should be passed in the second parameter.

credential
AzureSasCredential

The shared access signature credential used to sign requests.

options
ShareClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Remarks

This constructor should only be used when shared access signature needs to be updated during lifespan of this client.

Applies to

ShareDirectoryClient(Uri, TokenCredential, ShareClientOptions)

Source:
ShareDirectoryClient.cs
Source:
ShareDirectoryClient.cs

Initializes a new instance of the ShareDirectoryClient class.

Note that ShareTokenIntent is currently required for token authentication.

public ShareDirectoryClient (Uri directoryUri, Azure.Core.TokenCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = default);
new Azure.Storage.Files.Shares.ShareDirectoryClient : Uri * Azure.Core.TokenCredential * Azure.Storage.Files.Shares.ShareClientOptions -> Azure.Storage.Files.Shares.ShareDirectoryClient
Public Sub New (directoryUri As Uri, credential As TokenCredential, Optional options As ShareClientOptions = Nothing)

Parameters

directoryUri
Uri

A Uri referencing the directory that includes the name of the account, the name of the share, and the path of the directory.

credential
TokenCredential

The token credential used to sign requests.

options
ShareClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to

ShareDirectoryClient(Uri, StorageSharedKeyCredential, ShareClientOptions)

Source:
ShareDirectoryClient.cs
Source:
ShareDirectoryClient.cs

Initializes a new instance of the ShareDirectoryClient class.

public ShareDirectoryClient (Uri directoryUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Files.Shares.ShareClientOptions options = default);
new Azure.Storage.Files.Shares.ShareDirectoryClient : Uri * Azure.Storage.StorageSharedKeyCredential * Azure.Storage.Files.Shares.ShareClientOptions -> Azure.Storage.Files.Shares.ShareDirectoryClient
Public Sub New (directoryUri As Uri, credential As StorageSharedKeyCredential, Optional options As ShareClientOptions = Nothing)

Parameters

directoryUri
Uri

A Uri referencing the directory that includes the name of the account, the name of the share, and the path of the directory.

credential
StorageSharedKeyCredential

The shared key credential used to sign requests.

options
ShareClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to

ShareDirectoryClient(String, String, String, ShareClientOptions)

Source:
ShareDirectoryClient.cs
Source:
ShareDirectoryClient.cs

Initializes a new instance of the ShareDirectoryClient class.

public ShareDirectoryClient (string connectionString, string shareName, string directoryPath, Azure.Storage.Files.Shares.ShareClientOptions options);
new Azure.Storage.Files.Shares.ShareDirectoryClient : string * string * string * Azure.Storage.Files.Shares.ShareClientOptions -> Azure.Storage.Files.Shares.ShareDirectoryClient
Public Sub New (connectionString As String, shareName As String, directoryPath As String, options As ShareClientOptions)

Parameters

connectionString
String

A connection string includes the authentication information required for your application to access data in an Azure Storage account at runtime.

For more information, Configure Azure Storage connection strings

shareName
String

The name of the share in the storage account to reference.

directoryPath
String

The path of the directory in the storage account to reference.

options
ShareClientOptions

Optional ShareClientOptions that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to