SocketAddress.Item[Int32] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the specified index element in the underlying buffer.
public:
property System::Byte default[int] { System::Byte get(int offset); void set(int offset, System::Byte value); };
public byte this[int offset] { get; set; }
member this.Item(int) : byte with get, set
Default Public Property Item(offset As Integer) As Byte
Parameters
- offset
- Int32
The array index element of the desired information.
Property Value
The value of the specified index element in the underlying buffer.
Exceptions
The specified index does not exist in the buffer.
Remarks
This property gets or sets the specified byte position in the underlying buffer.
Note
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.