Bagikan melalui


JSObject.GetPropertyAsJSObject(String) Metode

Definisi

Mengembalikan nilai properti sebagai JSObject proksi jika properti ada, jika tidak null.

public:
 System::Runtime::InteropServices::JavaScript::JSObject ^ GetPropertyAsJSObject(System::String ^ propertyName);
public System.Runtime.InteropServices.JavaScript.JSObject? GetPropertyAsJSObject (string propertyName);
member this.GetPropertyAsJSObject : string -> System.Runtime.InteropServices.JavaScript.JSObject
Public Function GetPropertyAsJSObject (propertyName As String) As JSObject

Parameter

propertyName
String

Nama properti.

Mengembalikan

Nilai properti dengan nama yang ditentukan.

Pengecualian

Nilai properti bukan .JSObject

Keterangan

Metode ini melemparkan JSException ketika nilai properti bukan objek.

Berlaku untuk