PageBlobClient Constructors

Definition

Overloads

PageBlobClient()

Initializes a new instance of the PageBlobClient class for mocking.

PageBlobClient(Uri, BlobClientOptions)

Initializes a new instance of the PageBlobClient class.

PageBlobClient(String, String, String)

Initializes a new instance of the PageBlobClient class.

PageBlobClient(Uri, AzureSasCredential, BlobClientOptions)

Initializes a new instance of the PageBlobClient class.

PageBlobClient(Uri, TokenCredential, BlobClientOptions)

Initializes a new instance of the PageBlobClient class.

PageBlobClient(Uri, StorageSharedKeyCredential, BlobClientOptions)

Initializes a new instance of the PageBlobClient class.

PageBlobClient(String, String, String, BlobClientOptions)

Initializes a new instance of the PageBlobClient class.

PageBlobClient()

Source:
PageBlobClient.cs
Source:
PageBlobClient.cs

Initializes a new instance of the PageBlobClient class for mocking.

C#
protected PageBlobClient();

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

PageBlobClient(Uri, BlobClientOptions)

Source:
PageBlobClient.cs
Source:
PageBlobClient.cs

Initializes a new instance of the PageBlobClient class.

C#
public PageBlobClient(Uri blobUri, Azure.Storage.Blobs.BlobClientOptions options = default);

Parameters

blobUri
Uri

A Uri referencing the page blob that includes the name of the account, the name of the blob container, and the name of the blob.

options
BlobClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

PageBlobClient(String, String, String)

Source:
PageBlobClient.cs
Source:
PageBlobClient.cs

Initializes a new instance of the PageBlobClient class.

C#
public PageBlobClient(string connectionString, string blobContainerName, string blobName);

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

blobContainerName
String

The name of the container containing this page blob.

blobName
String

The name of this page blob.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

PageBlobClient(Uri, AzureSasCredential, BlobClientOptions)

Source:
PageBlobClient.cs
Source:
PageBlobClient.cs

Initializes a new instance of the PageBlobClient class.

C#
public PageBlobClient(Uri blobUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);

Parameters

blobUri
Uri

A Uri referencing the page blob that includes the name of the account, the name of the blob container, and the name of the blob. 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
BlobClientOptions

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

PageBlobClient(Uri, TokenCredential, BlobClientOptions)

Source:
PageBlobClient.cs
Source:
PageBlobClient.cs

Initializes a new instance of the PageBlobClient class.

C#
public PageBlobClient(Uri blobUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);

Parameters

blobUri
Uri

A Uri referencing the page blob that includes the name of the account, the name of the blob container, and the name of the blob.

credential
TokenCredential

The token credential used to sign requests.

options
BlobClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

PageBlobClient(Uri, StorageSharedKeyCredential, BlobClientOptions)

Source:
PageBlobClient.cs
Source:
PageBlobClient.cs

Initializes a new instance of the PageBlobClient class.

C#
public PageBlobClient(Uri blobUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);

Parameters

blobUri
Uri

A Uri referencing the page blob that includes the name of the account, the name of the blob container, and the name of the blob.

credential
StorageSharedKeyCredential

The shared key credential used to sign requests.

options
BlobClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

PageBlobClient(String, String, String, BlobClientOptions)

Source:
PageBlobClient.cs
Source:
PageBlobClient.cs

Initializes a new instance of the PageBlobClient class.

C#
public PageBlobClient(string connectionString, string blobContainerName, string blobName, Azure.Storage.Blobs.BlobClientOptions options);

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

blobContainerName
String

The name of the container containing this page blob.

blobName
String

The name of this page blob.

options
BlobClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview