Ejemplo n.º 1
0
 /// <summary>Snippet for GetGeographicView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetGeographicViewResourceNames()
 {
     // Create client
     GeographicViewServiceClient geographicViewServiceClient = GeographicViewServiceClient.Create();
     // Initialize request argument(s)
     GeographicViewName resourceName = GeographicViewName.FromCustomerGeographicView("[CUSTOMER]", "[GEOGRAPHIC_VIEW]");
     // Make the request
     GeographicView response = geographicViewServiceClient.GetGeographicView(resourceName);
 }
        /// <summary>Snippet for GetGeographicViewAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetGeographicViewRequestObjectAsync()
        {
            // Create client
            GeographicViewServiceClient geographicViewServiceClient = await GeographicViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetGeographicViewRequest request = new GetGeographicViewRequest
            {
                ResourceNameAsGeographicViewName = GeographicViewName.FromCustomerGeographicView("[CUSTOMER]", "[GEOGRAPHIC_VIEW]"),
            };
            // Make the request
            GeographicView response = await geographicViewServiceClient.GetGeographicViewAsync(request);
        }
Ejemplo n.º 3
0
 /// <summary>Snippet for GetGeographicView</summary>
 public void GetGeographicViewRequestObject()
 {
     // Snippet: GetGeographicView(GetGeographicViewRequest, CallSettings)
     // Create client
     GeographicViewServiceClient geographicViewServiceClient = GeographicViewServiceClient.Create();
     // Initialize request argument(s)
     GetGeographicViewRequest request = new GetGeographicViewRequest
     {
         ResourceNameAsGeographicViewName = GeographicViewName.FromCustomerGeographicView("[CUSTOMER]", "[GEOGRAPHIC_VIEW]"),
     };
     // Make the request
     GeographicView response = geographicViewServiceClient.GetGeographicView(request);
     // End snippet
 }
Ejemplo n.º 4
0
        /// <summary>Snippet for GetGeographicViewAsync</summary>
        public async Task GetGeographicViewResourceNamesAsync()
        {
            // Snippet: GetGeographicViewAsync(GeographicViewName, CallSettings)
            // Additional: GetGeographicViewAsync(GeographicViewName, CancellationToken)
            // Create client
            GeographicViewServiceClient geographicViewServiceClient = await GeographicViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GeographicViewName resourceName = GeographicViewName.FromCustomerGeographicView("[CUSTOMER]", "[GEOGRAPHIC_VIEW]");
            // Make the request
            GeographicView response = await geographicViewServiceClient.GetGeographicViewAsync(resourceName);

            // End snippet
        }