NET Email Validation
ValidationOptionResults Property
Example 






KellermanSoftware.NetEmailValidation Namespace > Result Class : ValidationOptionResults Property
A list of individual Validation Options and whether they Passed, Failed etc.
Syntax
'Declaration
 
Public Property ValidationOptionResults As System.Collections.Generic.Dictionary(Of ValidationOptions,PassStatus)
'Usage
 
Dim instance As Result
Dim value As System.Collections.Generic.Dictionary(Of ValidationOptions,PassStatus)
 
instance.ValidationOptionResults = value
 
value = instance.ValidationOptionResults
public System.Collections.Generic.Dictionary<ValidationOptions,PassStatus> ValidationOptionResults {get; set;}
public read-write property ValidationOptionResults: System.Collections.Generic.Dictionary; 
public function get,set ValidationOptionResults : System.Collections.Generic.Dictionary
public: __property System.Collections.Generic.Dictionary<ValidationOptions,PassStatus>* get_ValidationOptionResults();
public: __property void set_ValidationOptionResults( 
   System.Collections.Generic.Dictionary<ValidationOptions,PassStatus>* value
);
public:
property System.Collections.Generic.Dictionary<ValidationOptions,PassStatus>^ ValidationOptionResults {
   System.Collections.Generic.Dictionary<ValidationOptions,PassStatus>^ get();
   void set (    System.Collections.Generic.Dictionary<ValidationOptions,PassStatus>^ value);
}
Example
EmailValidation valid = new EmailValidation(); //Trial Mode
//EmailValidation valid = new EmailValidation("place user name here", "place license key here"); //License Mode
 
valid.FromEmail = "jane.doe@hotmail.com";
valid.FromMailServer = "mail.hotmail.com";
 
List<ValidationOptions> options = valid.NoConnectOptions;
Result result = valid.ValidEmail("john.doe@sly.io", options);
 
foreach (var optionResult in result.ValidationOptionResults)
{
    Console.WriteLine("{0}: {1}", optionResult.Key, optionResult.Value);
}
Dim valid As New EmailValidation() 'Trial Mode
'EmailValidation valid = new EmailValidation("place user name here", "place license key here"); //License Mode
 
valid.FromEmail = "jane.doe@hotmail.com"
valid.FromMailServer = "mail.hotmail.com"
 
Dim options As List(Of ValidationOptions) = valid.NoConnectOptions
Dim result As Result = valid.ValidEmail("john.doe@sly.io", options)
 
For Each optionResult In result.ValidationOptionResults
    Console.WriteLine("{0}: {1}", optionResult.Key, optionResult.Value)
Next optionResult
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