UtilityException 构造函数 (String, Exception)

Initializes a new, default instance of the UtilityException class with the specified error message and inner exception.

命名空间:  Microsoft.SqlServer.Management.Utility
程序集:  Microsoft.SqlServer.Management.Utility(在 Microsoft.SqlServer.Management.Utility.dll 中)

语法

声明
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
用法
Dim message As String 
Dim innerException As Exception 

Dim instance As New UtilityException(message, _
    innerException)
public UtilityException(
    string message,
    Exception innerException
)
public:
UtilityException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> UtilityException
public function UtilityException(
    message : String, 
    innerException : Exception
)

参数

  • innerException
    类型:System.Exception
    An Exception that is the cause of the current exception, or a null reference if no inner exception is specified.

请参阅

参考

UtilityException 类

UtilityException 重载

Microsoft.SqlServer.Management.Utility 命名空间