Esporta (0) Stampa
Espandi tutto

Metodo CloudTableClient.ListTables ()

Returns an enumerable collection of table names for the storage account.

Spazio dei nomi: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in microsoft.windowsazure.storageclient.dll)

'Utilizzo
Dim instance As CloudTableClient
Dim returnValue As IEnumerable(Of String)

returnValue = instance.ListTables

public IEnumerable<string> ListTables ()
public IEnumerable<String> ListTables ()
public function ListTables () : IEnumerable<String>

Valore restituito

An enumerable collection of table names.

The following code example lists all tables in the storage account.

public static void ListAllTables(CloudStorageAccount storageAccount)
{
    // Create service client for credentialed access to the Table service.
    CloudTableClient tableClient = new CloudTableClient(storageAccount.TableEndpoint.ToString(),
        storageAccount.Credentials);
    // List the tables in this storage account.
    foreach (string tableName in tableClient.ListTables())
    {
        Console.WriteLine(tableName);
    }
}

The collection of table names is retrieved lazily.


Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. I membri di istanza non sono garantiti come thread-safe.

Piattaforme di sviluppo

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008 e Windows 2000

Piattaforme di destinazione

Aggiunte alla community

Mostra:
© 2014 Microsoft