HierarchyIdException 构造函数 (String, Exception)

 

使用自定义错误消息和触发异常的对象初始化 HierarchyIdException 类的新实例。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

public HierarchyIdException(
    string message,
    Exception innerException
)
public:
HierarchyIdException(
    String^ message,
    Exception^ innerException
)
new : 
        message:string *
        innerException:Exception -> HierarchyIdException
Public Sub New (
    message As String,
    innerException As Exception
)

参数

  • message
    Type: System.String

    一个包含错误消息的string

备注

由另一个异常对象来传输的异常数据上游调用的构造函数。

另请参阅

HierarchyIdException 重载
HierarchyIdException 类
Microsoft.SqlServer.Types 命名空间

返回页首