| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal message As String, _ ByVal innerException As Exception _ )  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim message As String Dim innerException As Exception Dim instance As New InvalidNameException(message, innerException)  | |
| C# | |
|---|---|
public InvalidNameException( string message, Exception innerException )  | |
Parameters
- message
 - Message that describes this exception
 - innerException
 - Earlier exception that causes this exception
 
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8