BluetoothSocket.OutputStream 属性

定义

获取与此套接字关联的输出流。

public System.IO.Stream? OutputStream { [Android.Runtime.Register("getOutputStream", "()Ljava/io/OutputStream;", "")] get; }
[<get: Android.Runtime.Register("getOutputStream", "()Ljava/io/OutputStream;", "")>]
member this.OutputStream : System.IO.Stream

属性值

OutputStream

属性

例外

注解

获取与此套接字关联的输出流。

即使套接字尚未连接,也会返回输出流,但该流的操作将引发 IOException,直到关联套接字连接为止。

Java文档android.bluetooth.BluetoothSocket.getOutputStream()

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

适用于