语言

ParcelFileDescriptor.CloseWithError(String) 方法

定义

关闭 ParcelFileDescriptor,告知任何对等方处理时出错。

[Android.Runtime.Register("closeWithError", "(Ljava/lang/String;)V", "GetCloseWithError_Ljava_lang_String_Handler")]
public virtual void CloseWithError(string? msg);
[<Android.Runtime.Register("closeWithError", "(Ljava/lang/String;)V", "GetCloseWithError_Ljava_lang_String_Handler")>]
abstract member CloseWithError : string -> unit
override this.CloseWithError : string -> unit

参数

msg
String

描述错误;不得为 null。

特性

例外

注解

关闭 ParcelFileDescriptor,告知任何对等方处理时出错。 如果此描述符的创建者未观察到错误,它将正常关闭。

Java文档android.os.ParcelFileDescriptor.closeWithError(java.lang.String)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于