InvalidArgumentException 构造函数 (String, Exception)
使用指定的消息文本和内部异常初始化 InvalidArgumentException 类的新实例。
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Public Sub New ( _
message As String, _
innerException As Exception _
)
用法
Dim message As String
Dim innerException As Exception
Dim instance As New InvalidArgumentException(message, _
innerException)
public InvalidArgumentException(
string message,
Exception innerException
)
public:
InvalidArgumentException(
String^ message,
Exception^ innerException
)
new :
message:string *
innerException:Exception -> InvalidArgumentException
public function InvalidArgumentException(
message : String,
innerException : Exception
)
参数
- message
类型:System. . :: . .String
一个 String 值,该值指定描述导致了异常的事件的消息文本。
- innerException
类型:System. . :: . .Exception
包含内部异常的 Exception 对象。这用于一个异常导致引发其他异常的情况。