Search() public method

public Search ( ) : void
return void
Exemplo n.º 1
0
 public static void Main(string[] args)
 {
   FindType ft = new FindType();
   try
   {
     SetOptions(args, ft);      
     ft.Search();
   }
   catch(SecurityException)
   {
     Console.WriteLine("This sample has failed to run due to a security limitation!");
     Console.WriteLine("Try running the sample from a local drive or using CasPol.exe to turn off security.");
   }
   catch
   {
     PrintUsage();
   }      
 }
Exemplo n.º 2
0
    public static void Main(string[] args)
    {
        FindType ft = new FindType();

        try
        {
            SetOptions(args, ft);
            ft.Search();
        }
        catch (SecurityException)
        {
            Console.WriteLine("This sample has failed to run due to a security limitation!");
            Console.WriteLine("Try running the sample from a local drive or using CasPol.exe to turn off security.");
        }
        catch
        {
            PrintUsage();
        }
    }