ReplicationDatabase.ReadSubscriptionFailoverMode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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).