Класс 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) |
В начало
Свойства
Имя | Описание | |
---|---|---|
![]() |
ComHResult | The error code (HRESULT) value associated with this exception. |
![]() |
Data | (Производный от Exception.) |
![]() |
Description | A description of the error. |
![]() |
ErrorCode | (Производный от ExternalException.) |
![]() |
ErrorMessage | The error message string. |
![]() |
HelpContext | The context of a topic in a Help file. |
![]() |
HelpFile | The fully qualified path to a Help file. |
![]() |
HelpLink | (Производный от Exception.) |
![]() |
HResult | (Производный от Exception.) |
![]() |
InnerException | (Производный от Exception.) |
![]() |
InterfaceId | The identifier of the COM interface that is the source of the error. |
![]() |
Message | (Производный от Exception.) |
![]() |
Source | The name of the object or application that is the source of the error. (Переопределяет Exception. . :: . .Source.) |
![]() |
StackTrace | (Производный от Exception.) |
![]() |
TargetSite | (Производный от Exception.) |
В начало
Методы
Имя | Описание | |
---|---|---|
![]() |
Equals | (Производный от Object.) |
![]() |
Finalize | (Производный от Object.) |
![]() |
GetBaseException | (Производный от Exception.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetObjectData | Sets the specified SerializationInfo with information about the exception. (Переопределяет Exception. . :: . .GetObjectData(SerializationInfo, StreamingContext).) |
![]() |
GetType | (Производный от Exception.) |
![]() |
MemberwiseClone | (Производный от Object.) |
![]() |
ToString | (Производный от COMException.) |
В начало
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.