Cuemon .NET Framework
ThrowIfEmailAddress(String,String) Method

The value to be evaluated.
The name of the parameter that caused the exception.
Validates and throws an System.ArgumentException if the specified value has the format of an email address.
Syntax
'Declaration
 
Public Overloads Shared Sub ThrowIfEmailAddress( _
   ByVal value As String, _
   ByVal paramName As String _
) 
public static void ThrowIfEmailAddress( 
   string value,
   string paramName
)

Parameters

value
The value to be evaluated.
paramName
The name of the parameter that caused the exception.
Exceptions
ExceptionDescription
System.ArgumentExceptionvalue cannot be an email address.
Requirements

Target Platforms: Windows 8, Windows Server 2012, 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

Validator Class
Validator Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback