SocketAddress.Item Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the specified index element in the underlying buffer.
Namespace: System.Net
Assembly: System.Net (in System.Net.dll)
Syntax
'Declaration
Public Property Item ( _
offset As Integer _
) As Byte
public byte this[
int offset
] { 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.
Exceptions
Exception | Condition |
---|---|
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). |
Remarks
This property gets or sets the specified byte position in the underlying buffer.
Note: |
---|
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. |
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.