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!

ArgumentOutOfRangeException Constructor (String, String)

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

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

Parameters

parameterName
The name of the parameter that is out of range.
message
The message that indicates the reason the exception occurred.

Remarks

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

Property Type Condition
InnerException null
Message The message string.
ParamName The parameter name string.

See Also

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