BlobStream BlobStream BlobStream Class

Definition

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

public class BlobStream : System.IO.Stream
type BlobStream = class
    inherit Stream
Public Class BlobStream
Inherits Stream
Inheritance
BlobStreamBlobStreamBlobStream

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

CanRead CanRead CanRead

Gets a value indicating whether the current stream supports reading.

CanSeek CanSeek CanSeek

Gets a value indicating whether the current stream supports seeking.

CanTimeout CanTimeout CanTimeout

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

CanWrite CanWrite CanWrite

Gets a value indicating whether the current stream supports writing.

Length Length Length

Gets the length BLOB.

Position Position Position

Gets the position of the stream.

ReadTimeout ReadTimeout ReadTimeout

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

WriteTimeout WriteTimeout WriteTimeout

Gets or sets the timeout for write requests.

Methods

BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object) BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)

Not supported.

BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object) BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)

Not supported.

Close() Close() Close()

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

Dispose() Dispose() Dispose()

Releases all resources used by the stream.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

EndRead(IAsyncResult) EndRead(IAsyncResult) EndRead(IAsyncResult)

Not supported.

EndWrite(IAsyncResult) EndWrite(IAsyncResult) EndWrite(IAsyncResult)

Not supported.

Finalize() Finalize() Finalize()

Releases all resources held by the BlobStream.

Flush() Flush() Flush()

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

Read(Byte[], Int32, Int32) Read(Byte[], Int32, Int32) 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.

ReadByte() ReadByte() ReadByte()

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, SeekOrigin) Seek(Int64, SeekOrigin) Seek(Int64, SeekOrigin)

Sets the position within the current stream.

SetLength(Int64) SetLength(Int64) SetLength(Int64)

Not supported.

Write(Byte[], Int32, Int32) Write(Byte[], Int32, Int32) 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.

WriteByte(Byte) WriteByte(Byte) WriteByte(Byte)

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

Applies to