ReadSubscriptionFailoverMode Método
Returns the failover mode for an updating subscription to a transactional or snapshot publication.
Espacio de nombres: Microsoft.SqlServer.Replication
Ensamblado: Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)
Sintaxis
'Declaración
Public Function ReadSubscriptionFailoverMode ( _
publisher As String, _
publicationDB As String, _
publication As String _
) As FailoverMode
'Uso
Dim instance As ReplicationDatabase
Dim publisher As String
Dim publicationDB As String
Dim publication As String
Dim returnValue As FailoverMode
returnValue = instance.ReadSubscriptionFailoverMode(publisher, _
publicationDB, publication)
public FailoverMode ReadSubscriptionFailoverMode(
string publisher,
string publicationDB,
string publication
)
public:
FailoverMode ReadSubscriptionFailoverMode(
String^ publisher,
String^ publicationDB,
String^ publication
)
member ReadSubscriptionFailoverMode :
publisher:string *
publicationDB:string *
publication:string -> FailoverMode
public function ReadSubscriptionFailoverMode(
publisher : String,
publicationDB : String,
publication : String
) : FailoverMode
Parámetros
- publisher
Tipo: System. . :: . .String
A String value that specifies the Publisher.
- publicationDB
Tipo: System. . :: . .String
A String value that specifies the publication database.
- publication
Tipo: System. . :: . .String
A String value that specifies the publication.
Valor devuelto
Tipo: Microsoft.SqlServer.Replication. . :: . .FailoverMode
A FailoverMode value.
Notas
The ReadSubscriptionFailOverMode(String, String, String) method can only be called by members of the sysadmin fixed server role and members of the db_owner fixed database role.
Calling ReadSubscriptionFailOverMode(String, String, String) is equivalent to executing sp_helpreplfailovermode (Transact-SQL).
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.