SocketAsyncEventArgs.Offset 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.
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.