Share via


ReplicationDatabase.EnumMergeConflictCounts(String, String, String) Method

Definition

Returns information on conflicts stored in a merge publication or subscription database.

public:
 System::Collections::IEnumerable ^ EnumMergeConflictCounts(System::String ^ publicationName, System::String ^ publisherName, System::String ^ publicationDB);
public System.Collections.IEnumerable EnumMergeConflictCounts (string publicationName, string publisherName, string publicationDB);
member this.EnumMergeConflictCounts : string * string * string -> System.Collections.IEnumerable
Public Function EnumMergeConflictCounts (publicationName As String, publisherName As String, publicationDB As String) As IEnumerable

Parameters

publicationName
String

The name of the publication. publicationName is a required parameter.

publisherName
String

The name of the Publisher server.

publicationDB
String

The name of the published database.

Returns

An ArrayList of MergeConflictCount objects.

Exceptions

When the database does not exist.

When the value of publicationName is null.

Remarks

The EnumMergeConflictCounts method can be called when connected to a subscription database when decentralized conflict logging is supported. When centralized conflict logging is supported, conflict information can be retrieved from the publication database by calling EnumMergeConflictCounts and supplying null values for the publicationDB or publisherName parameters. For more information, see How Merge Replication Detects and Resolves Conflicts.

The EnumMergeConflictCounts method can only be called by members of the db_owner and replmonitor fixed database roles.

Applies to