XhtmlMobileTextWriter.WriteUrlParameter(String, String) 方法
定义
将一个包含查询字符串参数的编码 URL 写入输出流。Writes an encoded URL, which includes a query-string parameter, to the output stream. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
virtual void WriteUrlParameter(System::String ^ name, System::String ^ value);
public virtual void WriteUrlParameter (string name, string value);
abstract member WriteUrlParameter : string * string -> unit
override this.WriteUrlParameter : string * string -> unit
Public Overridable Sub WriteUrlParameter (name As String, value As String)
参数
- name
- String
包含 URL 参数名称的字符串。A string containing the name of the URL parameter.
- value
- String
包含 URL 参数值的字符串。A string containing the value of the URL parameter.
注解
参数的名称和 URL 值都进行了编码,并在它们之间插入等号 (=) 。Both the name of the parameter and the URL value are encoded, and an equal sign (=) is inserted between them. 或字符串中的空格 name value 编码为加号 (+) ,等号 (=) 编码为% 3d。Spaces in the name or value strings are encoded as plus signs (+), and equal signs (=) are encoded as %3d.