C# Class Npgsql.NpgsqlConnectionStringBuilder

Provides a simple way to create and manage the contents of connection strings used by the NpgsqlConnection class.
Inheritance: System.Data.Common.DbConnectionStringBuilder
Exibir arquivo Open project: runefs/Marvin Class Usage Examples

Private Properties

Property Type Description
GetDefaultValue object
GetKey Keywords
GetKeyName string
NpgsqlConnectionStringBuilder System
SetValue void
SetValue void
ToBoolean System.Boolean
ToInt32 int
ToIntegratedSecurity System.Boolean
ToProtocolVersion ProtocolVersion
ToSslMode SslMode
ToString string

Public Methods

Method Description
Clear ( ) : void

Clear the member and assign them to the default value.

Clone ( ) : NpgsqlConnectionStringBuilder

Return an exact copy of this NpgsqlConnectionString.

ContainsKey ( Keywords keyword ) : bool
NpgsqlConnectionStringBuilder ( string connectionString ) : System
Remove ( string keyword ) : bool
this ( Keywords keyword ) : object
this ( string keyword ) : object

Case insensative accessor for indivual connection string values.

Private Methods

Method Description
GetDefaultValue ( Keywords keyword ) : object
GetKey ( string key ) : Keywords
GetKeyName ( Keywords keyword ) : string
NpgsqlConnectionStringBuilder ( ) : System
SetValue ( Keywords keyword, object value ) : void

The function will modify private member only, not base[key].

SetValue ( string keyword, object value ) : void

This function will set value for known key, both private member and base[key].

ToBoolean ( object value ) : System.Boolean
ToInt32 ( object value, int min, int max, string key ) : int
ToIntegratedSecurity ( object value ) : System.Boolean
ToProtocolVersion ( object value ) : ProtocolVersion
ToSslMode ( object value ) : SslMode
ToString ( ProtocolVersion protocolVersion ) : string

Method Details

Clear() public method

Clear the member and assign them to the default value.
public Clear ( ) : void
return void

Clone() public method

Return an exact copy of this NpgsqlConnectionString.
public Clone ( ) : NpgsqlConnectionStringBuilder
return NpgsqlConnectionStringBuilder

ContainsKey() public method

public ContainsKey ( Keywords keyword ) : bool
keyword Keywords
return bool

NpgsqlConnectionStringBuilder() public method

public NpgsqlConnectionStringBuilder ( string connectionString ) : System
connectionString string
return System

Remove() public method

public Remove ( string keyword ) : bool
keyword string
return bool

this() public method

public this ( Keywords keyword ) : object
keyword Keywords
return object

this() public method

Case insensative accessor for indivual connection string values.
public this ( string keyword ) : object
keyword string
return object