GetServer Method (Boolean)

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Gets an available server based on Round Robin load balancing

Namespace: MySql.Data.MySqlClient.Replication
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0

Syntax

C#
public override ReplicationServer GetServer(
	bool isMaster
)
Visual Basic
Public Overrides Function GetServer ( _
	isMaster As Boolean _
) As ReplicationServer
Visual C++
public:
virtual ReplicationServer^ GetServer(
	bool isMaster
) override

Parameters

isMaster
Type: System..::..Boolean
True if the server to return must be a master

Return Value

Next available server

See Also