SocketAsyncEventArgs.Offset Property

Definition

Gets the offset, in bytes, into the data buffer referenced by the Buffer property.

public:
 property int Offset { int get(); };
public int Offset { get; }
member this.Offset : int
Public ReadOnly Property Offset As Integer

Property Value

An Int32 that contains the offset, in bytes, into the data buffer referenced by the Buffer property.

Remarks

This property describes the starting byte offset of data in the Buffer property. This value is set by calling the SetBuffer method.

This property does not apply to the BufferList property.

This property is used with the Socket.AcceptAsync, Socket.ConnectAsync, Socket.ReceiveAsync, Socket.ReceiveFromAsync, Socket.ReceiveMessageFromAsync, Socket.SendAsync, and Socket.SendToAsync methods.

Applies to

See also