SocketAddress.Item Property (Int32)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Gets or sets the specified index element in the underlying buffer.
Assembly: System (in System.dll)
Parameters
- offset
-
Type:
System.Int32
The array index element of the desired information.
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.
![]() |
---|
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
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Show: