예제 #1
0
 /// <summary>Snippet for SearchUris</summary>
 public void SearchUris()
 {
     // Snippet: SearchUris(string, IEnumerable<ThreatType>, CallSettings)
     // Create client
     WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.Create();
     // Initialize request argument(s)
     string uri = "";
     IEnumerable <ThreatType> threatTypes = new ThreatType[]
     {
         ThreatType.Unspecified,
     };
     // Make the request
     SearchUrisResponse response = webRiskServiceClient.SearchUris(uri, threatTypes);
     // End snippet
 }
예제 #2
0
 /// <summary>Snippet for SearchUris</summary>
 public void SearchUrisRequestObject()
 {
     // Snippet: SearchUris(SearchUrisRequest, CallSettings)
     // Create client
     WebRiskServiceClient webRiskServiceClient = WebRiskServiceClient.Create();
     // Initialize request argument(s)
     SearchUrisRequest request = new SearchUrisRequest
     {
         Uri         = "",
         ThreatTypes =
         {
             ThreatType.Unspecified,
         },
     };
     // Make the request
     SearchUrisResponse response = webRiskServiceClient.SearchUris(request);
     // End snippet
 }