Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.ListTopicsAsync C# (CSharp) 메소드

ListTopicsAsync() 공개 메소드

Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a NextToken is also returned. Use the NextToken parameter in a new ListTopics call to get further results.
/// 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 ( string nextToken, ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
nextToken string Token returned by the previous ListTopics request.
callback ListTopicsResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
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(string nextToken,  AmazonServiceCallback<ListTopicsRequest, ListTopicsResponse> callback, AsyncOptions options = null)
        {
            var request = new ListTopicsRequest();
            request.NextToken = nextToken;
            ListTopicsAsync(request, 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 ( ListTopicsResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient::ListTopicsAsync ( ListTopicsRequest request, 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