Whois.dll - How to start

After installation, this class reference,C# and VB.NET examples can be found in your Start menu.

If you need help, please visit: www.limilabs.com/whois/help

For ordering info please go to: www.limilabs.com/whois/purchase

Add reference and namespaces

First you have to add reference to Whois.dll to your project. See MSDN how to. Then add all namespaces you need:
// C#
using Limilabs.WHOIS.Client;
' VB.NET
Imports Limilabs.WHOIS.Client

Execute WHOIS query

// C#

using Limilabs.WHOIS.Client;

static void Main(string[] args)
{
    WhoisPath path = new WhoisPath();
    //path.StartServer = "whois.internic.net";
    string domain = "shareit.com";
    try
    {
        List<WhoisResponse> responses = path.Query(domain);
        foreach (WhoisResponse response in responses)
        {
            Console.WriteLine("==========================");
            Console.WriteLine(response.Server);
            foreach (string line in response.Lines)
            {
                Console.WriteLine(line);
            }
        }
    }
    catch (ServerException ex)
    {
        Console.WriteLine(ex.Message);
    }
}
' VB.NET

Imports Limilabs.WHOIS.Client

Shared Sub Main()

    Dim path As New WhoisPath()
    'path.StartServer = "whois.internic.net"
    Dim domain As String
    domain = "shareit.com"
    Try
        Dim responses As List(Of WhoisResponse)
        responses = path.Query(domain)

        Dim response As WhoisResponse
        For Each response In responses
            Console.WriteLine("==========================")
            Console.WriteLine(response.Server)
            For Each line As String In response.Lines
                Console.WriteLine(line)
            Next
        Next
    Catch ex As Exception
        Console.WriteLine(ex.Message)
    End Try
End Sub