Dart.PowerTCP.EmailValidation Namespace > Validator Class : WhiteList Property |
Gets or sets a list of good addresses and/or domains.
[Visual Basic]
<CategoryAttribute("Configurations")>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<DescriptionAttribute("Gets or sets a list of good addresses and/or domains.")>
Public Property WhiteList As StringCollection
[C#]
[CategoryAttribute("Configurations")]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DescriptionAttribute("Gets or sets a list of good addresses and/or domains.")]
public StringCollection WhiteList {get; set;}
[C++]
[CategoryAttribute("Configurations")]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DescriptionAttribute("Gets or sets a list of good addresses and/or domains.")]
public: __property StringCollection* get_WhiteList();
public: __property void set_WhiteList(
StringCollection* value
);
[C++/CLI]
[CategoryAttribute("Configurations")]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DescriptionAttribute("Gets or sets a list of good addresses and/or domains.")]
public:
property StringCollection^ WhiteList {
StringCollection^ get();
void set (StringCollection^ value);
}
Email addresses found in the WhiteList will result in a Progress of WhiteList. Because of this, it is possible for a successful result without progressing to the designated Level (an Exception indicates an unsuccessful result).
Wildcards can be used in the WhiteList. For example, "k*@myDomain.com" will whitelist any email address beginning with the letter 'k' in "myDomain.com". A wildcard can be used to whitelist an entire domain -- for example, "*@myDomain.com". This is useful for mail servers that always return a positive response.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
Validator Class | Validator Members
Send comments on this topic.
Documentation version 1.0.3.0.
© 2008 Dart Communications. All rights reserved.