SocketTools .NET Edition

WhoisClient.Search Method (String, WhoisSearchType)

Search for the specified record using the specified keyword and search type.

[Visual Basic]
Overloads Public Function Search( _
   ByVal keyword As String, _
   ByVal search As WhoisSearchType _
) As Boolean
[C#]
public bool Search(
   string keyword,
   WhoisSearchType search
);

Parameters

keyword
A string which specifies the keyword to search for. Typically this is the name of a domain, user handle or an email address.
search
A WhoisSearchType enumeration which specifies the type of search to be performed.

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The Search method submits the specified keyword and type of search to the server. The data returned by the server can be read using the Read method. Note that the text returned by a UNIX based server may only contain linefeeds at the end of each line of text, rather than the standard carriage return/linefeed used on Windows systems.

See Also