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

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

Deletes the endpoint for a device and mobile app from Amazon SNS. This action is idempotent. For more information, see Using Amazon SNS Mobile Push Notifications.

When you delete an endpoint that is also subscribed to a topic, then you must also unsubscribe the endpoint from the topic.

/// 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 DeleteEndpoint ( DeleteEndpointRequest request ) : Amazon.SimpleNotificationService.Model.DeleteEndpointResponse
request Amazon.SimpleNotificationService.Model.DeleteEndpointRequest Container for the necessary parameters to execute the DeleteEndpoint service method.
Результат Amazon.SimpleNotificationService.Model.DeleteEndpointResponse
        public DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request)
        {
            var marshaller = new DeleteEndpointRequestMarshaller();
            var unmarshaller = DeleteEndpointResponseUnmarshaller.Instance;

            return Invoke<DeleteEndpointRequest,DeleteEndpointResponse>(request, marshaller, unmarshaller);
        }

Usage Example

Пример #1
0
    public static void SNSMobilePushAPIsDeletePlatformEndpoint()
    {
      #region SNSMobilePushAPIsDeletePlatformEndpoint
      var snsClient = new AmazonSimpleNotificationServiceClient();

      var request = new DeleteEndpointRequest
      {
        EndpointArn = "arn:aws:sns:us-east-1:80398EXAMPLE:" +
          "endpoint/GCM/TimeCardProcessingApplication/" +
          "d84b5f0d-7136-3bbe-9b42-4e001EXAMPLE"
      };

      snsClient.DeleteEndpoint(request);
      #endregion
    }
All Usage Examples Of Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient::DeleteEndpoint
AmazonSimpleNotificationServiceClient