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

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

Returns a list of the requester's subscriptions. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a NextToken is also returned. Use the NextToken parameter in a new ListSubscriptions 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 ListSubscriptions ( ) : Amazon.SimpleNotificationService.Model.ListSubscriptionsResponse
Результат Amazon.SimpleNotificationService.Model.ListSubscriptionsResponse
        public ListSubscriptionsResponse ListSubscriptions()
        {
            return ListSubscriptions(new ListSubscriptionsRequest());
        }

Same methods

AmazonSimpleNotificationServiceClient::ListSubscriptions ( ListSubscriptionsRequest request ) : Amazon.SimpleNotificationService.Model.ListSubscriptionsResponse
AmazonSimpleNotificationServiceClient::ListSubscriptions ( string nextToken ) : Amazon.SimpleNotificationService.Model.ListSubscriptionsResponse

Usage Example

Пример #1
0
    public static void SNSListSubscriptions()
    {
      #region SNSListSubscriptions
      var snsClient = new AmazonSimpleNotificationServiceClient();
      var request = new ListSubscriptionsRequest();
      var response = new ListSubscriptionsResponse();

      do
      {
        response = snsClient.ListSubscriptions(request);

        foreach (var sub in response.Subscriptions)
        {
          Console.WriteLine("Subscription: {0}", sub.SubscriptionArn);
        }

        request.NextToken = response.NextToken;

      } while (!string.IsNullOrEmpty(response.NextToken));
      #endregion

      Console.ReadLine();
    }
All Usage Examples Of Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient::ListSubscriptions
AmazonSimpleNotificationServiceClient