Share via


StorageCredentials Constructors

Definition

Overloads

StorageCredentials()

Initializes a new instance of the StorageCredentials class.

StorageCredentials(TokenCredential)

Initializes a new instance of the StorageCredentials class with the specified bearer token.

StorageCredentials(String)

Initializes a new instance of the StorageCredentials class with the specified shared access signature token.

StorageCredentials(String, Byte[])

Initializes a new instance of the StorageCredentials class with the specified account name and key value.

StorageCredentials(String, String)

Initializes a new instance of the StorageCredentials class with the specified account name and key value.

StorageCredentials(String, Byte[], String)

Initializes a new instance of the StorageCredentials class with the specified account name, key value, and key name.

StorageCredentials(String, String, String)

Initializes a new instance of the StorageCredentials class with the specified account name, key value, and key name.

StorageCredentials()

Initializes a new instance of the StorageCredentials class.

public StorageCredentials ();
Public Sub New ()

Applies to

StorageCredentials(TokenCredential)

Initializes a new instance of the StorageCredentials class with the specified bearer token.

public StorageCredentials (Microsoft.Azure.Storage.Auth.TokenCredential tokenCredential);
new Microsoft.Azure.Storage.Auth.StorageCredentials : Microsoft.Azure.Storage.Auth.TokenCredential -> Microsoft.Azure.Storage.Auth.StorageCredentials
Public Sub New (tokenCredential As TokenCredential)

Parameters

tokenCredential
TokenCredential

The authentication token.

Applies to

StorageCredentials(String)

Initializes a new instance of the StorageCredentials class with the specified shared access signature token.

public StorageCredentials (string sasToken);
new Microsoft.Azure.Storage.Auth.StorageCredentials : string -> Microsoft.Azure.Storage.Auth.StorageCredentials
Public Sub New (sasToken As String)

Parameters

sasToken
String

A string representing the shared access signature token.

Applies to

StorageCredentials(String, Byte[])

Initializes a new instance of the StorageCredentials class with the specified account name and key value.

public StorageCredentials (string accountName, byte[] keyValue);
new Microsoft.Azure.Storage.Auth.StorageCredentials : string * byte[] -> Microsoft.Azure.Storage.Auth.StorageCredentials
Public Sub New (accountName As String, keyValue As Byte())

Parameters

accountName
String

A string that represents the name of the storage account.

keyValue
Byte[]

An array of bytes that represent the account access key.

Applies to

StorageCredentials(String, String)

Initializes a new instance of the StorageCredentials class with the specified account name and key value.

public StorageCredentials (string accountName, string keyValue);
new Microsoft.Azure.Storage.Auth.StorageCredentials : string * string -> Microsoft.Azure.Storage.Auth.StorageCredentials
Public Sub New (accountName As String, keyValue As String)

Parameters

accountName
String

A string that represents the name of the storage account.

keyValue
String

A string that represents the Base64-encoded account access key.

Applies to

StorageCredentials(String, Byte[], String)

Initializes a new instance of the StorageCredentials class with the specified account name, key value, and key name.

public StorageCredentials (string accountName, byte[] keyValue, string keyName);
new Microsoft.Azure.Storage.Auth.StorageCredentials : string * byte[] * string -> Microsoft.Azure.Storage.Auth.StorageCredentials
Public Sub New (accountName As String, keyValue As Byte(), keyName As String)

Parameters

accountName
String

A string that represents the name of the storage account.

keyValue
Byte[]

An array of bytes that represent the account access key.

keyName
String

A string that represents the name of the key.

Applies to

StorageCredentials(String, String, String)

Initializes a new instance of the StorageCredentials class with the specified account name, key value, and key name.

public StorageCredentials (string accountName, string keyValue, string keyName);
new Microsoft.Azure.Storage.Auth.StorageCredentials : string * string * string -> Microsoft.Azure.Storage.Auth.StorageCredentials
Public Sub New (accountName As String, keyValue As String, keyName As String)

Parameters

accountName
String

A string that represents the name of the storage account.

keyValue
String

A string that represents the Base64-encoded account access key.

keyName
String

A string that represents the name of the key.

Applies to