Indy 9
TIdAuthenticationCollection
Hierarchy, Properties, Methods, See Also, Unit: IdAuthenticationManager
Implements a container for authentication mechanisms used by a HTTP client.
TIdAuthenticationCollection = class(TOwnedCollection)
Unit
IdAuthenticationManager
Description
TIdAuthenticationCollection is a TOwnedCollection descendant that implements a container for authentication mechanisms used by a HTTP client. Items contains the TIdAuthenticationItem authentication mechanism used for a given URL accessed by a TIdCustomHTTP or TIdHTTP client.

TIdAuthenticationCollection.Items
TIdAuthenticationCollection, See Also
Provides indexes access to authentication class instances in the collection.
property Items [AIndex: Integer]: TIdAuthenticationItem;
Description
Items is an indexed TIdAuthenticationItem property that provides access to the items in the collection by the integer value in Index. Reading a collection item in a specified position returns the item as a TIdAuthenticationItem object instance. Writing a TIdAuthenticationItem to specified position calls the Assign method for the collection item to store the new value(s).

Use Add to create a new TIdAuthenticationItem collection item.


TIdAuthenticationCollection.Add
TIdAuthenticationCollection, See Also
function Add: TIdAuthenticationItem;
Description
Add is a TIdAuthenticationItem function used to create new object instances in the Items property for the collection. Add creates a new instance of the ItemCLass for the collection, TIdAuthenticationItem, with the collection as the owner of the item.

Use Items for read and write access to exisiting object instances in the collection.


TIdAuthenticationCollection.Create
TIdAuthenticationCollection, See Also
Constructor for the collection.
constructor Create(AOwner: Tpersistent);
Parameters
AOwner: Tpersistent
Owner of the collection.
Description
Create is the constructor for the collection. Create calls the inherited Create method using AOwner as the owner of the collection, and TIdAuthenticationItem as the ItemClass for objects added to the collection using Add.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.