There are more AWS SDK examples available in the AWS Doc SDK Examples
Use ListDomains
with an AWS SDK or CLI
The following code examples show how to use ListDomains
.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example:
- AWS SDK for .NET
-
Note
There's more on GitHub. Find the complete example and learn how to set up and run in the AWS Code Examples Repository
. /// <summary> /// List the domains for the account. /// </summary> /// <returns>A collection of domain summary records.</returns> public async Task<List<DomainSummary>> ListDomains() { var results = new List<DomainSummary>(); var paginateDomains = _amazonRoute53Domains.Paginators.ListDomains( new ListDomainsRequest()); // Get the entire list using the paginator. await foreach (var domain in paginateDomains.Domains) { results.Add(domain); } return results; }
-
For API details, see ListDomains in AWS SDK for .NET API Reference.
-