Share via


GlobalObject.encodeURIComponent(Object) Metode

Definisi

Mengodekan Pengidentifikasi Sumber Daya Seragam (URI) yang ditentukan.

API ini mendukung infrastruktur produk dan tidak dimaksudkan untuk digunakan langsung dari kode Anda.

public:
 static System::String ^ encodeURIComponent(System::Object ^ uriComponent);
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Global_encodeURIComponent)]
public static string encodeURIComponent (object uriComponent);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Global_encodeURIComponent)]
public static string encodeURIComponent (object uriComponent);
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Global_encodeURIComponent)>]
static member encodeURIComponent : obj -> string
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Global_encodeURIComponent)>]
static member encodeURIComponent : obj -> string
Public Shared Function encodeURIComponent (uriComponent As Object) As String

Parameter

uriComponent
Object

URI yang akan dikodekan.

Mengembalikan

Versi yang dikodekan dari uriComponent.

Atribut

Berlaku untuk