Cuemon .NET Framework
CreateArgumentException(String,String,Exception) Method

The name of the parameter that caused the exception.
A message that describes the error.
The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.
Creates and returns a new System.ArgumentException initialized to the provided parameters.
Syntax
'Declaration
 
Public Overloads Shared Function CreateArgumentException( _
   ByVal paramName As String, _
   ByVal message As String, _
   ByVal innerException As Exception _
) As ArgumentException
public static ArgumentException CreateArgumentException( 
   string paramName,
   string message,
   Exception innerException
)

Parameters

paramName
The name of the parameter that caused the exception.
message
A message that describes the error.
innerException
The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

Return Value

A new instance of System.ArgumentException initialized to the provided parameters.
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

ExceptionUtility Class
ExceptionUtility 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