Compartir a través de


SocketAsyncEventArgs.Offset Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

Syntax

'Declaration
Public ReadOnly Property Offset As Integer
public int Offset { get; }

Property Value

Type: System.Int32
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.ConnectAsync, Socket.ReceiveAsync, and Socket.SendAsync, methods.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.