Beispiel #1
0
        /// <summary>Snippet for DeleteNotificationChannel</summary>
        public void DeleteNotificationChannel()
        {
            // Snippet: DeleteNotificationChannel(NotificationChannelName,bool?,CallSettings)
            // Create client
            NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.Create();
            // Initialize request argument(s)
            NotificationChannelName name = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]");
            bool force = false;

            // Make the request
            notificationChannelServiceClient.DeleteNotificationChannel(name, force);
            // End snippet
        }
Beispiel #2
0
        /// <summary>Snippet for DeleteNotificationChannel</summary>
        public void DeleteNotificationChannel_RequestObject()
        {
            // Snippet: DeleteNotificationChannel(DeleteNotificationChannelRequest,CallSettings)
            // Create client
            NotificationChannelServiceClient notificationChannelServiceClient = NotificationChannelServiceClient.Create();
            // Initialize request argument(s)
            DeleteNotificationChannelRequest request = new DeleteNotificationChannelRequest
            {
                NotificationChannelName = new NotificationChannelName("[PROJECT]", "[NOTIFICATION_CHANNEL]"),
            };

            // Make the request
            notificationChannelServiceClient.DeleteNotificationChannel(request);
            // End snippet
        }