/// <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 }
/// <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 }