NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArgumentException Constructor (String, String)

Initializes a new instance of the ArgumentException class with a specified message and parameter name.

[Visual Basic]
Overloads Public Sub New( _
   ByVal message As String, _
   ByVal paramName As String _
)
[C#]
public ArgumentException(
   string message,
   string paramName
);
[C++]
public: ArgumentException(
   String* message,
   String* paramName
);
[JScript]
public function ArgumentException(
   message : String,
   paramName : String
);

Parameters

message
The message that indicates the reason the exception occurred.
paramName
The name of the parameter that caused this exception to be thrown.

Remarks

ArgumentException inherits from the Exception class. This constructor sets the properties of the Exception object as follows:

Property Type Condition
paramName The parameter name string.
Message The message string.

See Also

ArgumentException Class | ArgumentException Members | System Namespace | ArgumentException Constructor Overload List