HttpUtilityUrlEncode Method (String, Encoding) |
Encodes a URL string using the specified encoding object.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static string UrlEncode(
string str,
Encoding enc
)
Public Shared Function UrlEncode (
str As String,
enc As Encoding
) As String
public:
static String^ UrlEncode(
String^ str,
Encoding^ enc
)
static member UrlEncode :
str : string *
enc : Encoding -> string
Parameters
- str
- Type: SystemString
The text to encode. - enc
- Type: System.TextEncoding
The System.Text.Encoding object that specifies the encoding scheme.
Return Value
Type:
StringAn encoded string.
See Also