







![]() ![]() |
MySQL Connector/Net |
ReplicationServerGroup..::..AddServer Method |
ReplicationServerGroup Class See Also Send Feedback |
![]() |
Adds a server into the group
Namespace: MySql.Data.MySqlClient.Replication
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0
Syntax
C# |
---|
public ReplicationServer AddServer( string name, bool isMaster, string connectionString ) |
Visual Basic |
---|
Public Function AddServer ( _ name As String, _ isMaster As Boolean, _ connectionString As String _ ) As ReplicationServer |
Visual C++ |
---|
public: ReplicationServer^ AddServer( String^ name, bool isMaster, String^ connectionString ) |
Parameters
- name
- Type: System..::..String
Server name
- isMaster
- Type: System..::..Boolean
True if the server to add is master, False for slave server
- connectionString
- Type: System..::..String
Connection string used by this server