ComErrorException 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当复制代理提出一般错误时抛出的例外。
public ref class ComErrorException sealed : System::Runtime::InteropServices::COMException
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public sealed class ComErrorException : System.Runtime.InteropServices.COMException
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type ComErrorException = class
inherit COMException
Public NotInheritable Class ComErrorException
Inherits COMException
- 继承
-
ComErrorException
- 属性
构造函数
| 名称 | 说明 |
|---|---|
| ComErrorException() |
初始化 ComErrorException 类的新实例。 |
| ComErrorException(Int32, String, Int32, String, String, Guid, String) |
初始化 ComErrorException 类的新实例。 |
| ComErrorException(String, Exception) |
使用指定的错误消息和对作为此异常原因的内部异常的引用初始化 ComErrorException 类的新实例。 |
| ComErrorException(String) |
使用指定的错误消息初始化 ComErrorException 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| ComHResult |
获取与该异常相关的错误代码(HRESULT)值。 |
| Description |
获取错误的说明。 |
| ErrorMessage |
会收到错误消息字符串。 |
| HelpContext |
获取帮助文件中主题的上下文。 |
| HelpFile |
获得完全合格的帮助文件路径。 |
| InterfaceId |
获取错误来源COM接口的标识符。 |
| Source |
获取错误来源的对象或应用程序名称。 |
方法
| 名称 | 说明 |
|---|---|
| GetObjectData(SerializationInfo, StreamingContext) |
设置指定 SerializationInfo 值并附带关于例外的信息。 |