See Also

Validator Class  | Validator Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP Email Validation for .NET

BlackList Property

Dart.PowerTCP.EmailValidation Namespace > Validator Class : BlackList Property

Gets or sets a list of bad 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 bad addresses and/or domains.")> Public Property BlackList 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 bad addresses and/or domains.")] public StringCollection BlackList {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 bad addresses and/or domains.")] public: __property StringCollection* get_BlackList(); public: __property void set_BlackList(    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 bad addresses and/or domains.")] public: property StringCollection^ BlackList {    StringCollection^ get();    void set (StringCollection^ value); }

Remarks

Email addresses added to the BlackList will result in a ValidationState.Result of Syntax and a Exception indicating that the address was found in the Black List.

Wildcards can be used in the BlackList. For example, "k*@myDomain.com" will Black List any email address beginning with the letter 'k' in "myDomain.com". A wildcard can be used to BlackList an entire domain -- for example, "*@myDomain.com".

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

Validator Class  | Validator Members


Send comments on this topic.

Documentation version 1.0.3.0.

© 2008 Dart Communications.  All rights reserved.