이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

CloudTableClient.BeginDeleteTableIfExist 메서드

Begins an asynchronous operation to delete the tables if it exists.

네임스페이스: Microsoft.WindowsAzure.StorageClient
어셈블리: Microsoft.WindowsAzure.StorageClient(microsoft.windowsazure.storageclient.dll)
‘사용 방법
Dim instance As CloudTableClient
Dim tableName As String
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginDeleteTableIfExist(tableName, callback, state)
public IAsyncResult BeginDeleteTableIfExist (
	string tableName,
	AsyncCallback callback,
	Object state
)
public IAsyncResult BeginDeleteTableIfExist (
	String tableName, 
	AsyncCallback callback, 
	Object state
)
public function BeginDeleteTableIfExist (
	tableName : String, 
	callback : AsyncCallback, 
	state : Object
) : IAsyncResult

매개 변수

tableName

The table name.

callback

The callback delegate that will receive notification when the asynchronous operation completes.

state

A user-defined object that will be passed to the callback delegate.

반환 값

An IAsyncResult that references the asynchronous operation.

The following code example deletes a table asynchronously if it exists.

public static void DeleteTableIfExistsAsync(CloudStorageAccount storageAccount)
{
    // Create service client for credentialed access to the Table service.
    CloudTableClient tableClient = new CloudTableClient(storageAccount.TableEndpoint.ToString(),
        storageAccount.Credentials);

    tableClient.BeginDeleteTable("Categories", DeleteTableIfExistsAsyncCallback, tableClient);
}

public static void DeleteTableIfExistsAsyncCallback(IAsyncResult result)
{
    CloudTableClient tableClient = (CloudTableClient)result.AsyncState;

    // End the operation.
    if (tableClient.EndDeleteTableIfExist(result))
    {
        Console.WriteLine("Table deleted.");
    }
    else
    {
        Console.WriteLine("Table does not exist and so could not be deleted.");
    }
}


When a table is successfully deleted, it is immediately marked for deletion and is no longer accessible to clients. The table is later removed from the Table service during garbage collection.

Note that deleting a table is likely to take at least 40 seconds to complete. If an operation is attempted against the table while it was being deleted, a StorageClientException is thrown, with additional error information indicating that the table is being deleted.


이 형식의 모든 public static(Shared, Visual Basic의 경우) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

개발 플랫폼

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

대상 플랫폼

이 정보가 도움이 되었습니까?
(1500자 남음)

커뮤니티 추가 항목

© 2013 Microsoft. All rights reserved.
facebook page visit twitter rss feed newsletter