CloudStorageAccount
CloudStorageAccount
CloudStorageAccount
CloudStorageAccount
CloudStorageAccount
CloudStorageAccount
Class
Definition
Represents a Microsoft Azure Storage account.
public ref class CloudStorageAccount
public ref class CloudStorageAccount sealed
[Windows::Foundation::Metadata::WebHostHidden]
class CloudStorageAccount
public class CloudStorageAccount
type CloudStorageAccount = class
Public Class CloudStorageAccount
- Inheritance
Examples
// Create a CloudStorageAccount object using account name and key.
// The account name should be just the name of a Storage Account, not a URI, and
// not including the suffix. The key should be a base-64 encoded string that you
// can acquire from the portal, or from the management plane.
// This will have full permissions to all operations on the account.
StorageCredentials storageCredentials = new StorageCredentials(myAccountName, myAccountKey);
CloudStorageAccount cloudStorageAccount = new CloudStorageAccount(storageCredentials, useHttps: true);
// Create a CloudBlobClient object from the storage account.
// This object is the root object for all operations on the
// blob service for this particular account.
CloudBlobClient blobClient = cloudStorageAccount.CreateCloudBlobClient();
// Get a reference to a CloudBlobContainer object in this account.
// This object can be used to create the container on the service,
// list blobs, delete the container, etc. This operation does not make a
// call to the Azure Storage service. It neither creates the container
// on the service, nor validates its existence.
CloudBlobContainer container = blobClient.GetContainerReference("container1");
// Create a CloudQueueClient object from the storage account.
// This object is the root object for all operations on the
// queue service for this particular account.
CloudQueueClient queueClient = cloudStorageAccount.CreateCloudQueueClient();
// Get a reference to a CloudQueue object in this account.
// This object can be used to create the queue on the service,
// delete the queue, add messages, etc. This operation does not
// make a call to the Azure Storage service. It neither creates
// the queue on the service, nor validates its existence.
CloudQueue queue = queueClient.GetQueueReference("queue1");
// Create a CloudTableClient object from the storage account.
// This object is the root object for all operations on the
// table service for this particular account.
CloudTableClient tableClient = cloudStorageAccount.CreateCloudTableClient();
// Get a reference to a CloudTable object in this account.
// This object can be used to create the table on the service,
// delete the table, insert entities, etc. This operation does
// not make a call to the Azure Storage service. It neither
// creates the table on the service, nor validates its existence.
CloudTable table = tableClient.GetTableReference("table1");
// Create a CloudFileClient object from the storage account.
// This object is the root object for all operations on the
// file service for this particular account.
CloudFileClient fileClient = cloudStorageAccount.CreateCloudFileClient();
// Get a reference to a CloudFileShare object in this account.
// This object can be used to create the share on the service,
// delete the share, list files and directories, etc. This operation
// does not make a call to the Azure Storage service. It neither
// creates the share on the service, nor validates its existence.
CloudFileShare share = fileClient.GetShareReference("share1");
Remarks
Constructors
Properties
BlobEndpoint BlobEndpoint BlobEndpoint BlobEndpoint BlobEndpoint BlobEndpoint |
Gets the primary endpoint for the Blob service, as configured for the storage account. |
BlobStorageUri BlobStorageUri BlobStorageUri BlobStorageUri BlobStorageUri BlobStorageUri |
Gets the endpoints for the Blob service at the primary and secondary location, as configured for the storage account. |
Credentials Credentials Credentials Credentials Credentials Credentials |
Gets the credentials used to create this CloudStorageAccount object. |
DevelopmentStorageAccount DevelopmentStorageAccount DevelopmentStorageAccount DevelopmentStorageAccount DevelopmentStorageAccount DevelopmentStorageAccount |
Gets a CloudStorageAccount object that references the well-known development storage account. |
FileEndpoint FileEndpoint FileEndpoint FileEndpoint FileEndpoint FileEndpoint |
Gets the primary endpoint for the File service, as configured for the storage account. |
FileStorageUri FileStorageUri FileStorageUri FileStorageUri FileStorageUri FileStorageUri |
Gets the endpoints for the File service at the primary and secondary location, as configured for the storage account. |
QueueEndpoint QueueEndpoint QueueEndpoint QueueEndpoint QueueEndpoint QueueEndpoint |
Gets the primary endpoint for the Queue service, as configured for the storage account. |
QueueStorageUri QueueStorageUri QueueStorageUri QueueStorageUri QueueStorageUri QueueStorageUri |
Gets the endpoints for the Queue service at the primary and secondary location, as configured for the storage account. |
TableEndpoint TableEndpoint TableEndpoint TableEndpoint TableEndpoint TableEndpoint |
Gets the primary endpoint for the Table service, as configured for the storage account. |
TableStorageUri TableStorageUri TableStorageUri TableStorageUri TableStorageUri TableStorageUri |
Gets the endpoints for the Table service at the primary and secondary location, as configured for the storage account. |
UseV1MD5 UseV1MD5 UseV1MD5 UseV1MD5 UseV1MD5 UseV1MD5 |
Gets or sets a value indicating whether the FISMA MD5 setting will be used. |
Methods
Extension Methods
IsDefined(Object) IsDefined(Object) IsDefined(Object) IsDefined(Object) IsDefined(Object) IsDefined(Object) |
Determines if a certain property is defined or not. |
IsNull(Object) IsNull(Object) IsNull(Object) IsNull(Object) IsNull(Object) IsNull(Object) |
Determines if a certain property is null or not. |
IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object) |
Determines if a certain property is of premitive JSON type. |