Edit

Share via


SocketAddress.Item[Int32] Property

Definition

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.

Applies to

See also