コード例 #1
0
        public async Task CancelOperationAsync()
        {
            // Snippet: CancelOperationAsync(string,CallSettings)
            // Additional: CancelOperationAsync(string,CancellationToken)
            // Create client
            OperationsClient operationsClient = OperationsClient.Create();
            // Initialize request argument(s)
            string formattedName = OperationsClient.FormatOperationPathName("[OPERATION_PATH]");
            // Make the request
            await operationsClient.CancelOperationAsync(formattedName);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for CancelOperationAsync</summary>
        public async Task CancelOperationAsync()
        {
            // Snippet: CancelOperationAsync(string,CallSettings)
            // Additional: CancelOperationAsync(string,CancellationToken)
            // Create client
            OperationsClient operationsClient = await OperationsClient.CreateAsync();

            // Initialize request argument(s)
            string name = "";
            // Make the request
            await operationsClient.CancelOperationAsync(name);

            // End snippet
        }
コード例 #3
0
        /// <summary>Snippet for CancelOperationAsync</summary>
        public async Task CancelOperationAsync_RequestObject()
        {
            // Snippet: CancelOperationAsync(CancelOperationRequest,CallSettings)
            // Create client
            OperationsClient operationsClient = await OperationsClient.CreateAsync();

            // Initialize request argument(s)
            CancelOperationRequest request = new CancelOperationRequest
            {
                Name = "",
            };
            // Make the request
            await operationsClient.CancelOperationAsync(request);

            // End snippet
        }