在Plugin中執行刪除事件時,時無法獲取到當前實體的Entity,只能獲取到當前實體的EntityReference.
正確寫法:
EntityReference targetEntity = (EntityReference)plugin.Context.InputParameters["Target"];
錯誤寫法
Entity targetEntity = (Entity)plugin.Context.InputParameters["Target"];
在Plugin中執行刪除事件時,時無法獲取到當前實體的Entity,只能獲取到當前實體的EntityReference.
正確寫法:
EntityReference targetEntity = (EntityReference)plugin.Context.InputParameters["Target"];
錯誤寫法
Entity targetEntity = (Entity)plugin.Context.InputParameters["Target"];
介紹 這個 Cordova 插件用於監視設備的電池狀態。 安裝 cordova plugin add cordova-plugin-battery-status 使用方法: 應用程序可以使用windo