public DeleteTopicAsync ( string topicArn, DeleteTopicResponse>.AmazonServiceCallback |
||
topicArn | string | The ARN of the topic you want to delete. |
callback | DeleteTopicResponse>.AmazonServiceCallback | An Action delegate that is invoked when the operation completes. |
options | /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// | |
return | void |
public void DeleteTopicAsync(string topicArn, AmazonServiceCallback<DeleteTopicRequest, DeleteTopicResponse> callback, AsyncOptions options = null)
{
var request = new DeleteTopicRequest();
request.TopicArn = topicArn;
DeleteTopicAsync(request, callback, options);
}
AmazonSimpleNotificationServiceClient::DeleteTopicAsync ( |
|
AmazonSimpleNotificationServiceClient::DeleteTopicAsync ( string topicArn, System cancellationToken = default(CancellationToken) ) : Task |
|
AmazonSimpleNotificationServiceClient::DeleteTopicAsync ( |
public void DeleteTopic(string topicName) { using (var client = new AmazonSimpleNotificationServiceClient(_credentials)) { var topic = client.ListTopicsAsync().Result.Topics.SingleOrDefault(t => t.TopicArn == topicName); client.DeleteTopicAsync(topic.TopicArn).Wait(); } }