Class ReplicationServer
Represents a server in a Replication environment.
Inheritance
System.Object
ReplicationServer
Namespace: MySql.Data.MySqlClient.Replication
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public class ReplicationServer
Constructors
ReplicationServer(String, Boolean, String)
Declaration
public ReplicationServer(string name, bool isSource, string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | |
System. |
isSource | |
System. |
connectionString |
Properties
ConnectionString
Gets the connection string used to connect to the server.
Declaration
public string ConnectionString { get; }
Property Value
Type | Description |
---|---|
System. |
IsAvailable
Gets a flag indicating if the server is available to be considered in load balancing.
Declaration
public bool IsAvailable { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsMaster
Gets a value indicating whether the server is source or replica.
Declaration
[Obsolete("This property is deprecated please use IsSource instead.")]
public bool IsMaster { get; }
Property Value
Type | Description |
---|---|
System. |
IsSource
Gets a value indicating whether the server is source or replica.
Declaration
public bool IsSource { get; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets the server name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |