Socket.IsBound Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 was successfuly bound to an address
- Attributes
Remarks
Returns the binding state of the socket.
Note: Closing a socket doesn't clear its binding state, which means this method will return true
for a closed socket (see #isClosed()
) if it was successfuly bound prior to being closed.
Added in 1.4.
Java documentation for java.net.Socket.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.