NET Email Validation
CatchAllDomain Property
Example 






KellermanSoftware.NetEmailValidation Namespace > Result Class : CatchAllDomain Property
If true, this is a catch all domain. If false, it is not a catch all domain. If null, the catch all domain check was not run.
Syntax
'Declaration
 
Public Property CatchAllDomain As System.Nullable(Of Boolean)
'Usage
 
Dim instance As Result
Dim value As System.Nullable(Of Boolean)
 
instance.CatchAllDomain = value
 
value = instance.CatchAllDomain
public System.Nullable<bool> CatchAllDomain {get; set;}
public read-write property CatchAllDomain: System.Nullable; 
public function get,set CatchAllDomain : System.Nullable
public: __property System.Nullable<bool> get_CatchAllDomain();
public: __property void set_CatchAllDomain( 
   System.Nullable<bool> value
);
public:
property System.Nullable<bool> CatchAllDomain {
   System.Nullable<bool> get();
   void set (    System.Nullable<bool> value);
}
Example
EmailValidation valid = new EmailValidation(); //Trial Mode
//EmailValidation valid = new EmailValidation("place user name here", "place license key here"); //License Mode
 
valid.FromEmail = "someone@somewhere.com";
valid.FromMailServer = "mail.somewhere.com";
 
var options = valid.DefaultOptions;
options.Add(ValidationOptions.CatchAllDomainCheck);
Result myResult = valid.ValidEmail("john.doe@hotmail.com", options);
 
//This will be false.
Console.WriteLine(myResult.CatchAllDomain);
 
//Print the results to the console
Console.WriteLine(myResult.UserMessage);
Console.WriteLine();
Console.WriteLine(myResult.StatusDescription);
Console.WriteLine();
Console.WriteLine(myResult.Log);
Dim valid As New EmailValidation() 'Trial Mode
'EmailValidation valid = new EmailValidation("place user name here", "place license key here"); //License Mode
 
valid.FromEmail = "someone@somewhere.com"
valid.FromMailServer = "mail.somewhere.com"
 
Dim options = valid.DefaultOptions
options.Add(ValidationOptions.CatchAllDomainCheck)
Dim myResult As Result = valid.ValidEmail("john.doe@hotmail.com", options)
 
'This will be false.
Console.WriteLine(myResult.CatchAllDomain)
 
'Print the results to the console
Console.WriteLine(myResult.UserMessage)
Console.WriteLine()
Console.WriteLine(myResult.StatusDescription)
Console.WriteLine()
Console.WriteLine(myResult.Log)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Result Class
Result Members