TransSynchronizationAgent.ComErrorCollection 속성

Gets a collection of errors that are generated by the replication agent.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Replication(Microsoft.SqlServer.Replication.dll)

public virtual IEnumerable ComErrorCollection { get; }

속성 값

유형: System.Collections.IEnumerable
An IEnumerable collection of errors generated by a replication agent.

구현

ITransSynchronizationAgent.ComErrorCollection

To view all agent errors, you must iterate through the collection of ComErrorRecord objects.

The following example shows how to iterate through the returned error collection after an agent run.

[C#]

foreach (ComErrorRecord errorRecord in agent.ComErrorCollection)
    {
      WriteLog("[ERROR: " + errorRecord.ErrorNumber + 
          errorRecord.Description + "]");
    }

커뮤니티 추가 항목

추가
표시: