GetInstance Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Factory method for creating instances of Client that implement a connection with the requested features. The connection object returned must be explicitely opened see method Open()()()().

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

Syntax

C#
public static Client GetInstance(
	string server,
	uint port,
	MemcachedFlags flags
)
Visual Basic
Public Shared Function GetInstance ( _
	server As String, _
	port As UInteger, _
	flags As MemcachedFlags _
) As Client
Visual C++
public:
static Client^ GetInstance(
	String^ server, 
	unsigned int port, 
	MemcachedFlags flags
)

Parameters

server
Type: System..::..String
The Memcached server DNS or IP address.
port
Type: System..::..UInt32
The port for the Memcached server
flags
Type: MySql.Data.MySqlClient.Memcached..::..MemcachedFlags
A set of flags indicating characterestics requested.

Return Value

An instance of a client connection ready to be used.

See Also