PackageManager.GetInstrumentationInfo(ComponentName, PackageInfoFlags) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索有关特定检测类的所有信息。
[Android.Runtime.Register("getInstrumentationInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/InstrumentationInfo;", "GetGetInstrumentationInfo_Landroid_content_ComponentName_IHandler")]
public abstract Android.Content.PM.InstrumentationInfo GetInstrumentationInfo (Android.Content.ComponentName className, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getInstrumentationInfo", "(Landroid/content/ComponentName;I)Landroid/content/pm/InstrumentationInfo;", "GetGetInstrumentationInfo_Landroid_content_ComponentName_IHandler")>]
abstract member GetInstrumentationInfo : Android.Content.ComponentName * Android.Content.PM.PackageInfoFlags -> Android.Content.PM.InstrumentationInfo
参数
- className
- ComponentName
Instrumentation 类的全名(i.e. com.google.apps.contacts.InstrumentationList)。
- flags
- PackageInfoFlags
用于修改返回的数据的其他选项标志。
返回
包含 InstrumentationInfo
有关检测的信息的对象。
- 属性
例外
注解
检索有关特定检测类的所有信息。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。