System.Net.URLClient.TURI.DeleteParameter
Delphi
procedure DeleteParameter(AIndex: Integer); overload;
procedure DeleteParameter(const AName: string); overload;
C++
void __fastcall DeleteParameter(int AIndex)/* overload */;
void __fastcall DeleteParameter(const System::UnicodeString AName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Net.URLClient.pas System.Net.URLClient.hpp |
System.Net.URLClient | TURI |
Description
Deletes a parameter from the array of TURI parameters.
You can specify either the index or the name of the parameter that you want to delete from the array of TURI parameters.
- Note: If there is more than one parameter with the name
AName
, DeleteParameter deletes all the parameters with that name. However, DeleteParameter is case-sensitive. For example, if you have two parameters,Param1
andparam1
, and you callDeleteParameter('param1')
,Param1
is not removed.
Exceptions
A call to TURI.DeleteParameter may raise the following exceptions:
Exception | Exception.Message | Scenarios |
---|---|---|
Parameter <AName> not found |
| |
Parameter index <AIndex> out of range (<0>..<HighestArrayIndex>) |
|