初始化 ItemMustExistException 类的一个新实例,该实例包含指定的错误消息和对引起此异常的内部异常的参考。
命名空间: Microsoft.Synchronization
程序集: Microsoft.Synchronization(在 microsoft.synchronization.dll 中)
语法
声明
Public Sub New ( _
message As String, _
innerException As Exception _
)
用法
Dim message As String
Dim innerException As Exception
Dim instance As New ItemMustExistException(message, innerException)
public ItemMustExistException (
string message,
Exception innerException
)
public:
ItemMustExistException (
String^ message,
Exception^ innerException
)
public ItemMustExistException (
String message,
Exception innerException
)
public function ItemMustExistException (
message : String,
innerException : Exception
)
参数
- message
说明异常原因的错误消息。
- innerException
引起当前异常的异常,未指定内部异常时则为 null 引用(在 Visual Basic 中为 Nothing)。
备注
请参阅
参考
ItemMustExistException 类
ItemMustExistException 成员
Microsoft.Synchronization 命名空间