System.Net.URLClient.TURI.DeleteParameter

From RAD Studio API Documentation
Jump to: navigation, search

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 and param1, and you call DeleteParameter('param1'), Param1 is not removed.

Exceptions

A call to TURI.DeleteParameter may raise the following exceptions:

Exception Exception.Message Scenarios

ENetURIException

Parameter <AName> not found

  • There is no parameter with the specified name.

ENetURIException

Parameter index <AIndex> out of range (<0>..<HighestArrayIndex>)

See Also