Share via


WriteEncodedUrl Method

Writes the given URL, encoding it correctly for the target device. The URL might include parameters.

public virtual void WriteEncodedUrl(
   string url
)

Parameter

  • url
    The URL string.

Remarks

The URL is translated in accordance with the specification for URL encoding. So, for example, spaces in the main part of the URL are translated into %20, spaces in the parameter part of the URL are translated into plus (+) signs, the '/' character is translated into %2f, and so forth.

Inherited writer classes can override this method.

See Also

Applies to: MobileTextWriter Class | WmlMobileTextWriter Class