Share via


CloudStorageAccount Klasse

Definition

Stellt ein Microsoft Azure Storage-Konto dar.

public class CloudStorageAccount
type CloudStorageAccount = class
Public Class CloudStorageAccount
Vererbung
CloudStorageAccount

Beispiele


// 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 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");

Konstruktoren

CloudStorageAccount(StorageCredentials, Boolean)

Initialisiert eine neue Instanz der CloudStorageAccount-Klasse mit den angegebenen Anmeldeinformationen und gibt an, ob HTTP oder HTTPS für die Verbindung mit den Speicherdiensten verwendet werden soll

CloudStorageAccount(StorageCredentials, StorageUri, StorageUri, StorageUri, StorageUri)

Initialisiert eine neue instance der CloudStorageAccount -Klasse unter Verwendung der angegebenen Kontoanmeldeinformationen und Dienstendpunkte.

CloudStorageAccount(StorageCredentials, String, Boolean)

Initialisiert eine neue Instanz der CloudStorageAccount-Klasse mit den angegebenen Anmeldeinformationen und gibt an, ob HTTP oder HTTPS für die Verbindung mit den Speicherdiensten verwendet werden soll

CloudStorageAccount(StorageCredentials, String, String, Boolean)

Initialisiert eine neue Instanz der CloudStorageAccount-Klasse mit den angegebenen Anmeldeinformationen und gibt an, ob HTTP oder HTTPS für die Verbindung mit den Speicherdiensten verwendet werden soll

CloudStorageAccount(StorageCredentials, Uri, Uri, Uri, Uri)

Initialisiert eine neue Instanz der CloudStorageAccount-Klasse mithilfe der angegebenen Anmeldeinformationen und Dienstendpunkte

Eigenschaften

BlobEndpoint

Ruft den primären Endpunkt für den Blob-Dienst ab, wie für das Speicherkonto konfiguriert

BlobStorageUri

Ruft die Endpunkte für den Blob-Dienst am primären und am sekundären Speicherort ab, wie für das Speicherkonto konfiguriert

Credentials

Ruft die Anmeldeinformationen ab, die zum Erstellen dieses CloudStorageAccount-Objekts verwendet werden.

DevelopmentStorageAccount

Ruft ein CloudStorageAccount-Objekt ab, das auf das bekannte Entwicklungsspeicherkonto verweist

FileEndpoint

Ruft den primären Endpunkt für den Dateiendienst ab, wie für das Speicherkonto konfiguriert

FileStorageUri

Ruft die Endpunkte für den Dateiendienst am primären und am sekundären Speicherort ab, wie für das Speicherkonto konfiguriert

QueueEndpoint

Ruft den primären Endpunkt für den Warteschlangendienst ab, wie für das Speicherkonto konfiguriert

QueueStorageUri

Ruft die Endpunkte für den Warteschlangendienst am primären und am sekundären Speicherort ab, wie für das Speicherkonto konfiguriert

TableEndpoint

Ruft den primären Endpunkt für den Tabellendienst ab, wie für das Speicherkonto konfiguriert

TableStorageUri

Ruft die Endpunkte für den Tabellendienst am primären und am sekundären Speicherort ab, wie für das Speicherkonto konfiguriert

UseV1MD5

Ruft einen Wert ab oder legt diesen fest, welcher angibt, ob die FISMA MD5-Einstellung verwendet wird

Methoden

GetSharedAccessSignature(SharedAccessAccountPolicy)

Gibt eine Shared Access Signature für das Konto zurück.

Parse(String)

Analysiert eine Verbindungszeichenfolge und gibt CloudStorageAccount aus der Verbindungszeichenfolge zurück.

ToString()

Gibt eine Verbindungszeichenfolge für dieses Speicherkonto ohne vertrauliche Daten zurück.

ToString(Boolean)

Gibt eine Verbindungszeichenfolge für das Speicherkonto optional mit vertraulichen Daten zurück

TryParse(String, CloudStorageAccount)

Gibt an, ob eine Verbindungszeichenfolge dergestalt analysiert werden kann, dass sie ein CloudStorageAccount-Objekt zurückgibt

Erweiterungsmethoden

CreateCloudBlobClient(CloudStorageAccount)

Erstellt den Blob-Dienstclient.

CreateCloudFileClient(CloudStorageAccount)

Erstellt den Dateiendienst-Client

CreateCloudQueueClient(CloudStorageAccount)

Erstellt den Warteschlangendienstclient.

Gilt für: