Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.ListTopicsAsync C# (CSharp) Метод

ListTopicsAsync() публичный Метод

/// Indicates that the user has been denied access to the requested resource. /// /// Indicates an internal service error. /// /// Indicates that a request parameter does not comply with the associated constraints. ///
public ListTopicsAsync ( ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
callback ListTopicsResponse>.AmazonServiceCallback
options AsyncOptions /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. ///
Результат void
        public void ListTopicsAsync(AmazonServiceCallback<ListTopicsRequest, ListTopicsResponse> callback, AsyncOptions options = null)
        {
            ListTopicsAsync(new ListTopicsRequest(), callback, options);
        }

Same methods

AmazonSimpleNotificationServiceClient::ListTopicsAsync ( ListTopicsRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( string nextToken, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( ListTopicsRequest request, ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( string nextToken, ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void

Usage Example

Пример #1
0
 public Topic CheckSnsTopic(string topicName)
 {
     using (var client = new AmazonSimpleNotificationServiceClient(_credentials))
     {
         return client.ListTopicsAsync().Result.Topics.SingleOrDefault(topic => topic.TopicArn == topicName);
     }
 }
All Usage Examples Of Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient::ListTopicsAsync
AmazonSimpleNotificationServiceClient