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!

ArgumentNullException Constructor (String, String)

Initializes an instance of ArgumentNullException with a specified message and the name of the parameter that caused this exception to be thrown.

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

Parameters

parameterName
The name of the parameter that was passed a null value.
message
The message that indicates the reason the exception occurred.

Remarks

ArgumentException 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.
System.ArgumentException.parameterName The parameter name string.

See Also

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