AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Namespace: Amazon.SimpleNotificationService.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class ListPlatformApplicationsResponse : ListPlatformApplicationsResult
The ListPlatformApplicationsResponse type exposes the following members
| Name | Description | |
|---|---|---|
|
ListPlatformApplicationsResponse() |
| Name | Type | Description | |
|---|---|---|---|
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
ListPlatformApplicationsResult | Amazon.SimpleNotificationService.Model.ListPlatformApplicationsResult | Gets and sets the ListPlatformApplicationsResult property. Represents the output of a ListPlatformApplications operation. |
|
NextToken | System.String |
Gets and sets the property NextToken.
NextToken string is returned when calling ListPlatformApplications action if additional records are available after the first page results. |
|
PlatformApplications | System.Collections.Generic.List<Amazon.SimpleNotificationService.Model.PlatformApplication> |
Gets and sets the property PlatformApplications.
Platform applications returned when calling ListPlatformApplications action. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
This example shows how to list all mobile push applications and their attributes. For each mobile push application, this example also lists its endpoints and their attributes.
var snsClient = new AmazonSimpleNotificationServiceClient();
var appsResponse = snsClient.ListPlatformApplications();
foreach (var app in appsResponse.PlatformApplications)
{
Console.WriteLine();
var appAttrsRequest = new GetPlatformApplicationAttributesRequest
{
PlatformApplicationArn = app.PlatformApplicationArn
};
var appAttrsResponse =
snsClient.GetPlatformApplicationAttributes(appAttrsRequest);
var endpointsByAppRequest =
new ListEndpointsByPlatformApplicationRequest
{
PlatformApplicationArn = app.PlatformApplicationArn
};
var endpointsByAppResponse =
snsClient.ListEndpointsByPlatformApplication(
endpointsByAppRequest);
Console.WriteLine("Application: " + app.PlatformApplicationArn);
Console.WriteLine(" Properties: ");
foreach (var attr in appAttrsResponse.Attributes)
{
Console.WriteLine(" " + attr.Key + ": " + attr.Value);
}
Console.WriteLine(" Endpoints: ");
foreach (var endpoint in endpointsByAppResponse.Endpoints)
{
Console.WriteLine(" ARN: " + endpoint.EndpointArn);
Console.WriteLine(" Attributes: ");
foreach (var attr in endpoint.Attributes)
{
Console.WriteLine(" " + attr.Key + ": " + attr.Value);
}
}
}
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8