.SetBuffer Method (Int32, Int32)
Sets the data buffer to use with an asynchronous socket method.
public void SetBuffer(
Parameters offset Type: System .Int32 The offset, in bytes, in the data buffer where the operation starts. count Type: System .Int32 The maximum amount of data, in bytes, to send or receive in the buffer.
Exception Condition ArgumentException
There are ambiguous buffers specified. This exception occurs if the
property is also not null and the Buffer property is also not null. BufferList ArgumentOutOfRangeException
An argument was out of range. This exception occurs if the
offset parameter is less than zero or greater than the length of the array in the property. This exception also occurs if the Buffer count parameter is less than zero or greater than the length of the array in the property minus the Buffer offset parameter.
offset and count parameters can't be negative numbers. The combination of the offset and count parameters must be in bounds of the buffer array in the property. Buffer
This method sets the
property to the Count count parameter and the property to the Offset offset parameter. Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback