string
Class: matlab.net.QueryParameter
Namespace: matlab.net
Encoded query parameter as string
Syntax
str = string(obj)
Input Arguments
obj
— Query parameter
matlab.net.QueryParameter
object
Query parameter, specified as one or more matlab.net.QueryParameter
objects.
If obj
is a vector of QueryParameter
objects,
then the method returns a single string joining the encoded members
with &
character. If obj
is
empty, then the method returns ""
.
Output Arguments
str
— Query parameter
string
Query parameter, returned as a string.
str
is of the form name=value
,
where name
is the Name
property
and value
is the Value
property,
represented as a string. If Value
is a cell array
or nonscalar other than a character vector, it is converted based
on the Format
property. The conversion might
result in multiple name=value
pairs separated by
the &
character and including other punctuation.
Special characters in Name
or Value
that
are not permitted in a query are percent-encoded (%
),
except for space, which is encoded as +
. For more
information on encoding, see the qStr
argument
to the QueryParameter constructor.
Version History
Introduced in R2016b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)