匯出 (0) 列印
全部展開

CloudTableClient.ListTables 方法 (String)

Returns an enumerable collection of table names that begin with the specified prefix.

命名空間: Microsoft.WindowsAzure.StorageClient
組件: Microsoft.WindowsAzure.StorageClient (在 microsoft.windowsazure.storageclient.dll 中)

'用途
Dim instance As CloudTableClient
Dim prefix As String
Dim returnValue As IEnumerable(Of String)

returnValue = instance.ListTables(prefix)

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

參數

prefix

The table name prefix.

傳回值

An enumerable collection of table names.

The following code example lists tables in the storage account that begin with the specified prefix.


public static void ListTablesByPrefix(CloudStorageAccount storageAccount, string prefix)
{
    // 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(prefix))
    {
        Console.WriteLine(tableName);
    }
}

The collection of table names is retrieved lazily.


任何這個類型的公用靜態 (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。 並非所有的執行個體成員都是安全執行緒。

開發平台

Windows XP Home Edition, Windows XP Professional, Windows Server 2003、Windows Server 2008 和 Windows 2000

目標平台

社群新增項目

顯示:
© 2014 Microsoft