Item Property
Collapse the table of content
Expand the table of content

SocketAddress.Item Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the specified index element in the underlying buffer.

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

'Declaration
Public Property Item ( _
	offset As Integer _
) As Byte

Parameters

offset
Type: System.Int32
The array index element of the desired information.

Property Value

Type: System.Byte
The value of the specified index element in the underlying buffer.

ExceptionCondition
IndexOutOfRangeException

The specified index does not exist in the buffer (the offset is. less than 0 or greater than or equal to the Size property).

This property gets or sets the specified byte position in the underlying buffer.

NoteNote:

Be sure to get the Size property before referring to elements in the underlying buffer. Referring to an index that does not exist will cause the SocketAddress to throw an IndexOutOfRangeException.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft