System.Net.URLClient.IURLRequest.SetCredential
Delphi
procedure SetCredential(const ACredential: TCredentialsStorage.TCredential); overload;
procedure SetCredential(const AUserName, APassword: string); overload;
C++
virtual void __fastcall SetCredential(const TCredentialsStorage::TCredential &ACredential) = 0 /* overload */;
virtual void __fastcall SetCredential(const System::UnicodeString AUserName, const System::UnicodeString APassword) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Net.URLClient.pas System.Net.URLClient.hpp |
System.Net.URLClient | IURLRequest |
Description
Setter of Credential.
You may specify the credentials as an instance of TCredential or as a combination of username and password. If you need to specify a realm, use an instance of TCredential.