Blob​Stream Class

Definition

A stream for sending and receiving binary data associated with a health record item.

public class BlobStream : System.IO.Stream
Inheritance
BlobStream

Remarks

The stream can be written only for BLOBs created using NewBlob(String, String). If the blob has data retrieved from HealthVault it will not be writable. Instead, use NewBlob(String, String) with the same name as the BLOB you wish to replace and then get the BlobStream from that Blob instance and write to it.

Properties

Can​Read

Gets a value indicating whether the current stream supports reading.

Can​Seek

Gets a value indicating whether the current stream supports seeking.

Can​Timeout

Gets a value that determines whether the current stream can time out.

Can​Write

Gets a value indicating whether the current stream supports writing.

Length

Gets the length BLOB.

Position

Gets the position of the stream.

Read​Timeout

Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.

Write​Timeout

Gets or sets the timeout for write requests.

Methods

Begin​Read(​Byte[], ​Int32, ​Int32, ​Async​Callback, ​Object)

Not supported.

Begin​Write(​Byte[], ​Int32, ​Int32, ​Async​Callback, ​Object)

Not supported.

Close()

Closes the current stream and releases any resources associated with the current stream.

Dispose()

Releases all resources used by the stream.

Dispose(​Boolean)

Releases all resources used by the stream object and optionally releases the managed resources.

End​Read(​IAsync​Result)

Not supported.

End​Write(​IAsync​Result)

Not supported.

Finalize()

Releases all resources held by the BlobStream.

Flush()

Clears all buffers for this stream and causes any buffered data to be written to HealthVault.

Read(​Byte[], ​Int32, ​Int32)

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Read​Byte()

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Seek(​Int64, ​Seek​Origin)

Sets the position within the current stream.

Set​Length(​Int64)

Not supported.

Write(​Byte[], ​Int32, ​Int32)

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

Write​Byte(​Byte)

Writes a byte to the current position in the stream and advances the position within the stream by one byte.