JSObject.GetPropertyAsJSObject(String) 方法

定義

如果屬性存在,則傳回屬性的值做為 JSObject Proxy,否則 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

參數

propertyName
String

屬性的名稱。

傳回

具有指定名稱的屬性值。

例外狀況

屬性值不是 JSObject

備註

當屬性值不是 物件時,這個方法會 JSException 擲回 。

適用於