共用方式為


HttpUtility.UrlPathEncode(String) 方法

定義

請勿使用,只在需要瀏覽器相容性時使用。 請使用 UrlEncode(String)

public:
 static System::String ^ UrlPathEncode(System::String ^ str);
public:
 static System::String ^ UrlPathEncode(System::String ^ s);
public static string? UrlPathEncode (string? str);
public static string UrlPathEncode (string str);
public static string UrlPathEncode (string s);
static member UrlPathEncode : string -> string
static member UrlPathEncode : string -> string
Public Shared Function UrlPathEncode (str As String) As String
Public Shared Function UrlPathEncode (s As String) As String

參數

strs
String

要編碼的文字。

傳回

String

已編碼的文字。

適用於