ReplicationAgentException.MessageCode Property

Gets the error code of the underlying error.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Syntax

'Declaration
Public ReadOnly Property MessageCode As Integer
    Get
'Usage
Dim instance As ReplicationAgentException
Dim value As Integer

value = instance.MessageCode
public int MessageCode { get; }
public:
property int MessageCode {
    int get ();
}
member MessageCode : int
function get MessageCode () : int

Property Value

Type: System.Int32
An Int32 value.