ComErrorException 类
The exception that is thrown when a general error is raised by a replication agent.
继承层次结构
System.Object
System.Exception
System.SystemException
System.Runtime.InteropServices.ExternalException
System.Runtime.InteropServices.COMException
Microsoft.SqlServer.Replication.ComErrorException
命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Replication(在 Microsoft.SqlServer.Replication.dll 中)
语法
声明
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public NotInheritable Class ComErrorException _
Inherits COMException
用法
Dim instance As ComErrorException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public sealed class ComErrorException : COMException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class ComErrorException sealed : public COMException
[<SealedAttribute>]
[<SerializableAttribute>]
[<ComVisibleAttribute(false)>]
type ComErrorException =
class
inherit COMException
end
public final class ComErrorException extends COMException
ComErrorException 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
ComErrorException() | Initializes a new instance of the ComErrorException class. | |
ComErrorException(String) | Initializes a new instance of the ComErrorException class with a specified error message. | |
ComErrorException(String, Exception) | Initializes a new instance of the ComErrorException class with a specified error message and a reference to the inner exception that is the cause of this exception. | |
ComErrorException(Int32, String, Int32, String, String, Guid, String) | Initializes a new instance of the ComErrorException class. |
页首
属性
名称 | 说明 | |
---|---|---|
ComHResult | Gets the error code (HRESULT) value associated with this exception. | |
Data | (从 Exception 继承。) | |
Description | Gets a description of the error. | |
ErrorCode | (从 ExternalException 继承。) | |
ErrorMessage | Gets the error message string. | |
HelpContext | Gets the context of a topic in a Help file. | |
HelpFile | Gets the fully qualified path to a Help file. | |
HelpLink | (从 Exception 继承。) | |
HResult | (从 Exception 继承。) | |
InnerException | (从 Exception 继承。) | |
InterfaceId | Gets the identifier of the COM interface that is the source of the error. | |
Message | (从 Exception 继承。) | |
Source | Gets the name of the object or application that is the source of the error. (覆盖 Exception.Source。) | |
StackTrace | (从 Exception 继承。) | |
TargetSite | (从 Exception 继承。) |
页首
方法
名称 | 说明 | |
---|---|---|
Equals | (从 Object 继承。) | |
GetBaseException | (从 Exception 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetObjectData | Sets the specified SerializationInfo with information about the exception. (覆盖 Exception.GetObjectData(SerializationInfo, StreamingContext)。) | |
GetType | (从 Exception 继承。) | |
ToString | (从 COMException 继承。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。