UriHelper.Encode(Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a string from the given absolute or relative Uri that is appropriately encoded for use in HTTP headers. Note that a unicode host name will be encoded as punycode.
public:
static System::String ^ Encode(Uri ^ uri);
public static string Encode (Uri uri);
static member Encode : Uri -> string
Public Function Encode (uri As Uri) As String
Parameters
- uri
- Uri
The Uri to encode.
Returns
The encoded string version of uri
.