PackageManager.GetInstrumentationInfo(ComponentName, PackageInfoFlags) 方法

定义

检索有关特定检测类的所有信息。

[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.content.pm.PackageManager.getInstrumentationInfo(android.content.ComponentName, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于