コード例 #1
0
        /// <summary>Snippet for SearchUrisAsync</summary>
        public async Task SearchUrisAsync()
        {
            // Snippet: SearchUrisAsync(string, IEnumerable<ThreatType>, CallSettings)
            // Additional: SearchUrisAsync(string, IEnumerable<ThreatType>, CancellationToken)
            // Create client
            WebRiskServiceClient webRiskServiceClient = await WebRiskServiceClient.CreateAsync();

            // Initialize request argument(s)
            string uri = "";
            IEnumerable <ThreatType> threatTypes = new ThreatType[]
            {
                ThreatType.Unspecified,
            };
            // Make the request
            SearchUrisResponse response = await webRiskServiceClient.SearchUrisAsync(uri, threatTypes);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for SearchUrisAsync</summary>
        public async Task SearchUrisRequestObjectAsync()
        {
            // Snippet: SearchUrisAsync(SearchUrisRequest, CallSettings)
            // Additional: SearchUrisAsync(SearchUrisRequest, CancellationToken)
            // Create client
            WebRiskServiceClient webRiskServiceClient = await WebRiskServiceClient.CreateAsync();

            // Initialize request argument(s)
            SearchUrisRequest request = new SearchUrisRequest
            {
                Uri         = "",
                ThreatTypes =
                {
                    ThreatType.Unspecified,
                },
            };
            // Make the request
            SearchUrisResponse response = await webRiskServiceClient.SearchUrisAsync(request);

            // End snippet
        }