DatagramPacket.Length Property

Definition

Returns the length of the data to be sent or the length of the data received. -or- Set the length for this packet.

public int Length { [Android.Runtime.Register("getLength", "()I", "")] get; [Android.Runtime.Register("setLength", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getLength", "()I", "")>]
[<set: Android.Runtime.Register("setLength", "(I)V", "")>]
member this.Length : int with get, set

Property Value

Int32

the length of the data to be sent or the length of the data received.

Attributes

Remarks

Property getter documentation:

Java documentation for java.net.DatagramPacket.getLength().

Property setter documentation:

Java documentation for java.net.DatagramPacket.setLength(int).

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