Compartilhar via


DatagramSocket.IsBound Property

Definition

Returns the binding state of the socket.

public virtual bool IsBound { [Android.Runtime.Register("isBound", "()Z", "GetIsBoundHandler")] get; }
[<get: Android.Runtime.Register("isBound", "()Z", "GetIsBoundHandler")>]
member this.IsBound : bool

Property Value

true if the socket successfully bound to an address

Attributes

Remarks

Returns the binding state of the socket.

If the socket was bound prior to being #close closed, then this method will continue to return true after the socket is closed.

Added in 1.4.

Java documentation for java.net.DatagramSocket.isBound().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to