ComErrorRecord Class
Represents information for an error generated by a replication agent.
Assembly: Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)
| Name | Description | |
|---|---|---|
![]() | ComErrorRecord() | Creates an instance of the ComErrorRecord class. |
![]() | ComErrorRecord(String^, String^, Int32) | Creates an instance of the ComErrorRecord class and settings properties of the error. |
| Name | Description | |
|---|---|---|
![]() | Description | A description of the error. |
![]() | ErrorNumber | The numeric error code. |
![]() | SourceType | A value that identifies the source of the error. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
This example (C#) shows how to iterate through the returned error collection after an agent run.
foreach (ComErrorRecord errorRecord in agent.ComErrorCollection)
{
WriteLog("[ERROR: " + errorRecord.ErrorNumber +
errorRecord.Description + "]");
}
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:


