ComponentInfo 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ComponentInfo() |
创建包含其初始字段值的组件信息记录。 |
| ComponentInfo(ComponentInfo) |
使用另一条记录中的值创建组件信息记录。 |
| ComponentInfo(Parcel) |
从包裹中还原包项和组件信息。 |
| ComponentInfo(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
ComponentInfo()
创建包含其初始字段值的组件信息记录。
[Android.Runtime.Register(".ctor", "()V", "")]
public ComponentInfo();
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ComponentInfo(ComponentInfo)
使用另一条记录中的值创建组件信息记录。
[Android.Runtime.Register(".ctor", "(Landroid/content/pm/ComponentInfo;)V", "")]
public ComponentInfo(Android.Content.PM.ComponentInfo? orig);
[<Android.Runtime.Register(".ctor", "(Landroid/content/pm/ComponentInfo;)V", "")>]
new Android.Content.PM.ComponentInfo : Android.Content.PM.ComponentInfo -> Android.Content.PM.ComponentInfo
参数
- orig
- ComponentInfo
从中复制字段值的组件记录。
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ComponentInfo(Parcel)
从包裹中还原包项和组件信息。
[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
protected ComponentInfo(Android.OS.Parcel? source);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.Content.PM.ComponentInfo : Android.OS.Parcel -> Android.Content.PM.ComponentInfo
参数
- source
- Parcel
包含包项字段的包裹,后跟组件字段。
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ComponentInfo(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected ComponentInfo(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.PM.ComponentInfo : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.PM.ComponentInfo
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。