INetCredentialCache.Add

Syntax

Add(Host: String; Port: Integer; AuthProtocol: String; Credential: INetNetworkCredential);

Parameters

Host. Name or IP address of the mail server, to which the access is provided.

Port. The port, via which the mail server access is provided.

AuthProtocol. Authentication scheme used by the resource.

Credential. The NetworkCredential class that must be added to accounts cache.

Description

The Add method adds the NetNetworkCredential instance to accounts cache.

Comments

This method inserts the NetNetworkCredential instance to NetCredentialCache. The cache stores the accounts added in the order of their addition. When the GetCredential method is called, the corresponding NetNetworkCredential working instance is returned.

See also:

INetCredentialCache