TLoginString

Overview

The TLoginString class is used to unify store login related information in the implementation of login services by the TBaseLoginService. It can be described as an associative map with string keys that collects any contiguous data in handy form. You may also use it to parse text in commonly used formats such as connection strings.

Location

Properties


Connection

Returns the first non-empty value of the 'Connection', 'ConnectionName' and 'Connection Name' keys.

property Connection: ROUTF8String read write

Item

Returns the dequoted value associated with aName.

property Item[aName: ROUTF8String]: ROUTF8String read write

Password

Returns the value of the 'Password' key.

property Password: ROUTF8String read write

Username

Returns the first non-empty value of the 'User', 'UserID', 'User ID', 'UserName' and 'User Name' keys.

property Username: ROUTF8String read write

Instance Methods


constructor Create

Creates a values map from the aLoginString.

constructor Create(const aLoginString: ROUTF8String)

Parameters:

  • aLoginString: a sequence of pairs = or : separated by ';'.

See Also