SocketAddress.Item Property (Int32)

 

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

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

member Item : 
        offset:int -> byte with get, set

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.

Exception Condition
IndexOutOfRangeException

The specified index does not exist in the buffer.

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

System_CAPS_noteNote

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: