Exemplo n.º 1
0
 /// <summary>Snippet for DisableXpnHost</summary>
 public void DisableXpnHostRequestObject()
 {
     // Snippet: DisableXpnHost(DisableXpnHostProjectRequest, CallSettings)
     // Create client
     ProjectsClient projectsClient = ProjectsClient.Create();
     // Initialize request argument(s)
     DisableXpnHostProjectRequest request = new DisableXpnHostProjectRequest
     {
         RequestId = "",
         Project   = "",
     };
     // Make the request
     Operation response = projectsClient.DisableXpnHost(request);
     // End snippet
 }
Exemplo n.º 2
0
        /// <summary>Snippet for DisableXpnHostAsync</summary>
        public async Task DisableXpnHostRequestObjectAsync()
        {
            // Snippet: DisableXpnHostAsync(DisableXpnHostProjectRequest, CallSettings)
            // Additional: DisableXpnHostAsync(DisableXpnHostProjectRequest, CancellationToken)
            // Create client
            ProjectsClient projectsClient = await ProjectsClient.CreateAsync();

            // Initialize request argument(s)
            DisableXpnHostProjectRequest request = new DisableXpnHostProjectRequest
            {
                RequestId = "",
                Project   = "",
            };
            // Make the request
            Operation response = await projectsClient.DisableXpnHostAsync(request);

            // End snippet
        }