ComponentName.ReadFromParcel(Parcel) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从之前使用 #writeToParcel(ComponentName, Parcel) 编写的 Parcel 读取 ComponentName,并根据需要返回 null 或新对象。
[Android.Runtime.Register("readFromParcel", "(Landroid/os/Parcel;)Landroid/content/ComponentName;", "")]
public static Android.Content.ComponentName? ReadFromParcel(Android.OS.Parcel? in);
[<Android.Runtime.Register("readFromParcel", "(Landroid/os/Parcel;)Landroid/content/ComponentName;", "")>]
static member ReadFromParcel : Android.OS.Parcel -> Android.Content.ComponentName
参数
- in
- Parcel
从中读取 ComponentName 的地块
返回
返回与以前写入的对象匹配的新 ComponentName;如果已写入 null,则返回 null。
- 属性
注解
从之前使用 #writeToParcel(ComponentName, Parcel) 编写的 Parcel 读取 ComponentName,并根据需要返回 null 或新对象。
Java文档android.content.ComponentName.readFromParcel(android.os.Parcel)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
另请参阅
- <xref:Android.Content.ComponentName.WriteToParcel(Android.Content.ComponentName%2c+Android.OS.Parcel)>