SocketTools .NET Edition

WhoisClient.Keyword Property

Gets and sets the default search keyword.

[Visual Basic]
Public Property Keyword As String
[C#]
public string Keyword {get; set;}

Property Value

A string which specifies the default search keyword.

Remarks

The Keyword property specifies the value used when querying the remote server. The keyword may refer to a handle, a user name or a mailbox name. Setting this property provides the default keyword for the Search method.

Keywords may contain special characters that instruct the server how to match the value. These values are outlined in RFC 954, the standards document that describes the WHOIS/NICNAME protocol. These forms are typically recognized:

Example Description
value Search for value as either a user name or a handle.
value... Search for value that matches anything up to that point.
!value Search for a handle that matches the given value.
last, first Search for the specified name.
user@ Search for mailboxes with the given user name.
@host Search for mailboxes on the specified host.
user@host Search for mailboxes for the user on the specified host.

If the keyword uses any of these special forms, the SearchType property must be set to searchAny, which tells the control not to modify the keyword value when submitting the query to the server. Note that all keyword forms may not be supported by a given server, and additional types of searches may be supported.

See Also

WhoisClient Class | SocketTools Namespace