StorageCredentials Class
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.
Represents a set of credentials used to authenticate access to a Microsoft Azure storage account.
public sealed class StorageCredentials
type StorageCredentials = class
Public NotInheritable Class StorageCredentials
- Inheritance
-
StorageCredentials
Constructors
StorageCredentials() |
Initializes a new instance of the StorageCredentials class. |
StorageCredentials(String) |
Initializes a new instance of the StorageCredentials class with the specified shared access signature token. |
StorageCredentials(String, String) |
Initializes a new instance of the StorageCredentials class with the specified account name and key value. |
StorageCredentials(String, String, String) |
Initializes a new instance of the StorageCredentials class with the specified account name, key value, and key name. |
Properties
AccountName |
Gets the associated account name for the credentials. |
IsAnonymous |
Gets a value indicating whether the credentials are for anonymous access. |
IsSAS |
Gets a value indicating whether the credentials are a shared access signature token. |
IsSharedKey |
Gets a value indicating whether the credentials are a shared key. |
Key |
Gets the associated key for the credentials. |
KeyName |
Gets the associated key name for the credentials. |
SASSignature |
Gets the value of the shared access signature token's |
SASToken |
Gets the associated shared access signature token for the credentials. |
Methods
Equals(StorageCredentials) |
Determines whether an other StorageCredentials object is equal to this one by comparing their SAS tokens, account names, key names, and key values. |
TransformUri(StorageUri) |
Transforms a resource URI into a shared access signature URI, by appending a shared access token. |
TransformUri(Uri) |
Transforms a resource URI into a shared access signature URI, by appending a shared access token. |
UpdateKey(String) |
Updates the key value for the credentials. |
UpdateKey(String, String) |
Updates the key value and key name for the credentials. |
UpdateSASToken(String) |
Updates the shared access signature (SAS) token value for storage credentials created with a shared access signature. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기