示例#1
0
 /// <summary>Snippet for GetKeywordThemeConstant</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetKeywordThemeConstant()
 {
     // Create client
     KeywordThemeConstantServiceClient keywordThemeConstantServiceClient = KeywordThemeConstantServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "keywordThemeConstants/[EXPRESS_CATEGORY_ID]~[EXPRESS_SUB_CATEGORY_ID]";
     // Make the request
     KeywordThemeConstant response = keywordThemeConstantServiceClient.GetKeywordThemeConstant(resourceName);
 }
示例#2
0
 /// <summary>Snippet for GetKeywordThemeConstant</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetKeywordThemeConstantResourceNames()
 {
     // Create client
     KeywordThemeConstantServiceClient keywordThemeConstantServiceClient = KeywordThemeConstantServiceClient.Create();
     // Initialize request argument(s)
     KeywordThemeConstantName resourceName = KeywordThemeConstantName.FromExpressCategoryExpressSubCategory("[EXPRESS_CATEGORY_ID]", "[EXPRESS_SUB_CATEGORY_ID]");
     // Make the request
     KeywordThemeConstant response = keywordThemeConstantServiceClient.GetKeywordThemeConstant(resourceName);
 }
        /// <summary>Snippet for GetKeywordThemeConstantAsync</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 GetKeywordThemeConstantRequestObjectAsync()
        {
            // Create client
            KeywordThemeConstantServiceClient keywordThemeConstantServiceClient = await KeywordThemeConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetKeywordThemeConstantRequest request = new GetKeywordThemeConstantRequest
            {
                ResourceNameAsKeywordThemeConstantName = KeywordThemeConstantName.FromExpressCategoryExpressSubCategory("[EXPRESS_CATEGORY_ID]", "[EXPRESS_SUB_CATEGORY_ID]"),
            };
            // Make the request
            KeywordThemeConstant response = await keywordThemeConstantServiceClient.GetKeywordThemeConstantAsync(request);
        }
        /// <summary>Snippet for GetKeywordThemeConstantAsync</summary>
        public async Task GetKeywordThemeConstantAsync()
        {
            // Snippet: GetKeywordThemeConstantAsync(string, CallSettings)
            // Additional: GetKeywordThemeConstantAsync(string, CancellationToken)
            // Create client
            KeywordThemeConstantServiceClient keywordThemeConstantServiceClient = await KeywordThemeConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "keywordThemeConstants/[EXPRESS_CATEGORY_ID]~[EXPRESS_SUB_CATEGORY_ID]";
            // Make the request
            KeywordThemeConstant response = await keywordThemeConstantServiceClient.GetKeywordThemeConstantAsync(resourceName);

            // End snippet
        }
 /// <summary>Snippet for GetKeywordThemeConstant</summary>
 public void GetKeywordThemeConstantRequestObject()
 {
     // Snippet: GetKeywordThemeConstant(GetKeywordThemeConstantRequest, CallSettings)
     // Create client
     KeywordThemeConstantServiceClient keywordThemeConstantServiceClient = KeywordThemeConstantServiceClient.Create();
     // Initialize request argument(s)
     GetKeywordThemeConstantRequest request = new GetKeywordThemeConstantRequest
     {
         ResourceNameAsKeywordThemeConstantName = KeywordThemeConstantName.FromExpressCategoryExpressSubCategory("[EXPRESS_CATEGORY_ID]", "[EXPRESS_SUB_CATEGORY_ID]"),
     };
     // Make the request
     KeywordThemeConstant response = keywordThemeConstantServiceClient.GetKeywordThemeConstant(request);
     // End snippet
 }
        /// <summary>Snippet for GetKeywordThemeConstantAsync</summary>
        public async Task GetKeywordThemeConstantResourceNamesAsync()
        {
            // Snippet: GetKeywordThemeConstantAsync(KeywordThemeConstantName, CallSettings)
            // Additional: GetKeywordThemeConstantAsync(KeywordThemeConstantName, CancellationToken)
            // Create client
            KeywordThemeConstantServiceClient keywordThemeConstantServiceClient = await KeywordThemeConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            KeywordThemeConstantName resourceName = KeywordThemeConstantName.FromExpressCategoryExpressSubCategory("[EXPRESS_CATEGORY_ID]", "[EXPRESS_SUB_CATEGORY_ID]");
            // Make the request
            KeywordThemeConstant response = await keywordThemeConstantServiceClient.GetKeywordThemeConstantAsync(resourceName);

            // End snippet
        }