Interface IUrlSearchParams
Namespace: Aspose.Html
Assembly: Aspose.HTML.dll (25.2.0)
Provides methods to work with URLs query string.
[DOMObject]
[DOMName("UrlSearchParams")]
[ComVisible(true)]
public interface IUrlSearchParams : IEnumerable<string[]>, IEnumerable
Implements
IEnumerable<string[]>, IEnumerable
Methods
Append(string, string)
Appends a new name-value pair whose name is name
and value is value
.
[DOMName("append")]
void Append(string name, string value)
Parameters
name
string
Name of the new name-value pair.
value
string
Value of the new name-value pair.
Delete(string)
Removes all name-value pairs whose name is name
.
[DOMName("delete")]
void Delete(string name)
Parameters
name
string
Key which will be used to find name-value pairs.
Get(string)
Returns value of the first name-value pair whose name is name
.
[DOMName("get")]
string Get(string name)
Parameters
name
string
Key which will be used to find name-value pair.
Returns
Value of the first name-value pair whose name is name
or null
if there is none.
GetAll(string)
Returns all values whose name is name
.
[DOMName("getAll")]
IList<string> GetAll(string name)
Parameters
name
string
Key which will be used to find name-value pair.
Returns
List containing all values whose name is name
.
Has(string)
Checks if there is a name-value pair whose name is name
in list.
[DOMName("has")]
bool Has(string name)
Parameters
name
string
Key which will be used to find name-value pair.
Returns
True
if there is a name-value pair whose name is name
in list, and false
otherwise.
Set(string, string)
Sets value of the first found name-value pair to the specified value and removes the others. If no name-value pairs with the specified name are found, new one will be appended to the list.
[DOMName("set")]
void Set(string name, string value)
Parameters
name
string
Key which will be used to find name-value pairs.
value
string
Value which will be set.
Sort()
Sorts all name-value pairs, if any, by their names.
[DOMName("sort")]
void Sort()
</string[]></string[]>