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
)

參數

  • innerException
    型別:System. . :: . .Exception
    包含內部例外狀況的 Exception 物件。這個物件適用於某個例外狀況造成引發另一個例外狀況的情況。