Share via


ReplicationDatabase.ReadSubscriptionFailoverMode Method

Definition

Returns the failover mode for an updating subscription to a transactional or snapshot publication.

public:
 Microsoft::SqlServer::Replication::FailoverMode ReadSubscriptionFailoverMode(System::String ^ publisher, System::String ^ publicationDB, System::String ^ publication);
public Microsoft.SqlServer.Replication.FailoverMode ReadSubscriptionFailoverMode (string publisher, string publicationDB, string publication);
member this.ReadSubscriptionFailoverMode : string * string * string -> Microsoft.SqlServer.Replication.FailoverMode
Public Function ReadSubscriptionFailoverMode (publisher As String, publicationDB As String, publication As String) As FailoverMode

Parameters

publisher
String

A String value that specifies the Publisher.

publicationDB
String

A String value that specifies the publication database.

publication
String

A String value that specifies the publication.

Returns

A FailoverMode value.

Remarks

The <xref:Microsoft.SqlServer.Replication.ReplicationDatabase.ReadSubscriptionFailOverMode%2A> method can only be called by members of the sysadmin fixed server role and members of the db_owner fixed database role.

Calling <xref:Microsoft.SqlServer.Replication.ReplicationDatabase.ReadSubscriptionFailOverMode%2A> is equivalent to executing sp_helpreplfailovermode (Transact-SQL).

Applies to