对于NativeActivity的活动家长活动类型 [英] Parent activity type for NativeActivity activities
本文介绍了对于NativeActivity的活动家长活动类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有什么办法的,它可以从的执行方法?
Is there any way in which it can be seen the type of the parent activity of a NativeActivity from the Execute method ?
推荐答案
是的,你可以执行以下code块,它会回报你的内部父的价值
属性 - 这将是你父母的实例
Yes, you can execute the following code block and it will return you the value of the internal Parent
property -- this will be the instance of your parent.
this.GetType()
.GetProperty(
"Parent",
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)
.GetValue(this, null)
这篇关于对于NativeActivity的活动家长活动类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文