Esempio n. 1
0
 /// <summary>Snippet for GetAgeRangeView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetAgeRangeViewResourceNames()
 {
     // Create client
     AgeRangeViewServiceClient ageRangeViewServiceClient = AgeRangeViewServiceClient.Create();
     // Initialize request argument(s)
     AgeRangeViewName resourceName = AgeRangeViewName.FromCustomerAgeRangeView("[CUSTOMER]", "[AGE_RANGE_VIEW]");
     // Make the request
     AgeRangeView response = ageRangeViewServiceClient.GetAgeRangeView(resourceName);
 }
        /// <summary>Snippet for GetAgeRangeViewAsync</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 GetAgeRangeViewRequestObjectAsync()
        {
            // Create client
            AgeRangeViewServiceClient ageRangeViewServiceClient = await AgeRangeViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetAgeRangeViewRequest request = new GetAgeRangeViewRequest
            {
                ResourceNameAsAgeRangeViewName = AgeRangeViewName.FromCustomerAgeRangeView("[CUSTOMER]", "[AGE_RANGE_VIEW]"),
            };
            // Make the request
            AgeRangeView response = await ageRangeViewServiceClient.GetAgeRangeViewAsync(request);
        }
 /// <summary>Snippet for GetAgeRangeView</summary>
 public void GetAgeRangeViewRequestObject()
 {
     // Snippet: GetAgeRangeView(GetAgeRangeViewRequest, CallSettings)
     // Create client
     AgeRangeViewServiceClient ageRangeViewServiceClient = AgeRangeViewServiceClient.Create();
     // Initialize request argument(s)
     GetAgeRangeViewRequest request = new GetAgeRangeViewRequest
     {
         ResourceNameAsAgeRangeViewName = AgeRangeViewName.FromCustomerAgeRangeView("[CUSTOMER]", "[AGE_RANGE_VIEW]"),
     };
     // Make the request
     AgeRangeView response = ageRangeViewServiceClient.GetAgeRangeView(request);
     // End snippet
 }
        /// <summary>Snippet for GetAgeRangeViewAsync</summary>
        public async Task GetAgeRangeViewResourceNamesAsync()
        {
            // Snippet: GetAgeRangeViewAsync(AgeRangeViewName, CallSettings)
            // Additional: GetAgeRangeViewAsync(AgeRangeViewName, CancellationToken)
            // Create client
            AgeRangeViewServiceClient ageRangeViewServiceClient = await AgeRangeViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            AgeRangeViewName resourceName = AgeRangeViewName.FromCustomerAgeRangeView("[CUSTOMER]", "[AGE_RANGE_VIEW]");
            // Make the request
            AgeRangeView response = await ageRangeViewServiceClient.GetAgeRangeViewAsync(resourceName);

            // End snippet
        }