HttpServerUtilityBase.UrlPathEncode(String) 方法

定義

在衍生類別中覆寫時,對 URL 字串的路徑區段進行 URL 編碼。When overridden in a derived class, URL-encodes the path section of a URL string.

public:
 virtual System::String ^ UrlPathEncode(System::String ^ s);
public virtual string UrlPathEncode (string s);
abstract member UrlPathEncode : string -> string
override this.UrlPathEncode : string -> string
Public Overridable Function UrlPathEncode (s As String) As String

參數

s
String

要進行 URL 編碼的字串。The string to URL-encode.

傳回

String

URL 編碼的文字。The URL-encoded text.

例外狀況

永遠。Always.

適用於