JSObject.GetPropertyAsJSObject(String) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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.