Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Write Method

HealthVault
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: 2.1.0.0 (1.15.1003.9505)

public override void Write(
	byte[] buffer,
	int offset,
	int count
)

Parameters

buffer
Type: array<System..::..Byte>[]()[][]
An array of bytes. This method copies count bytes from buffer to the current stream.
offset
Type: System..::..Int32
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
count
Type: System..::..Int32
The number of bytes to be written to the current stream.

If the request bytes to write don't make a full chunk, they will be buffered and written when a full chunk size is written or Flush()()()() or Close()()()() is called.

ExceptionCondition
System..::..ArgumentNullException If buffer is null.
System..::..ArgumentException The sum of offset and count is greater than the buffer length.
System..::..ArgumentOutOfRangeExceptionoffset or count is negative.
System..::..NotSupportedException If the stream does not support writing.
System..::..ObjectDisposedException Methods were called after the stream was closed.
Microsoft.Health..::..HealthServiceException If there was a failure writing the data to HealthVault.
Show:
© 2015 Microsoft