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
Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

Clear the member and assign them to the default value.
public Clear ( ) : void
Résultat void

Clone() public méthode

Return an exact copy of this NpgsqlConnectionString.
public Clone ( ) : NpgsqlConnectionStringBuilder
Résultat NpgsqlConnectionStringBuilder

ContainsKey() public méthode

public ContainsKey ( Keywords keyword ) : bool
keyword Keywords
Résultat bool

NpgsqlConnectionStringBuilder() public méthode

public NpgsqlConnectionStringBuilder ( string connectionString ) : System
connectionString string
Résultat System

Remove() public méthode

public Remove ( string keyword ) : bool
keyword string
Résultat bool

this() public méthode

public this ( Keywords keyword ) : object
keyword Keywords
Résultat object

this() public méthode

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