BlobStore BlobStore BlobStore Class

Definition

A collection of the BLOBs associated with a health record item.

public class BlobStore : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Microsoft.Health.Blob>>, System.Collections.Generic.IDictionary<string,Microsoft.Health.Blob>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Health.Blob>>
type BlobStore = class
    interface IDictionary<string, Blob>
    interface ICollection<KeyValuePair<string, Blob>>
    interface seq<KeyValuePair<string, Blob>>
    interface IEnumerable
Public Class BlobStore
Implements ICollection(Of KeyValuePair(Of String, Blob)), IDictionary(Of String, Blob), IEnumerable(Of KeyValuePair(Of String, Blob))
Inheritance
BlobStoreBlobStoreBlobStore
Implements

Remarks

The BlobStore is a dictionary that is read-only but allows removal of Blob instances. To add Blob instances to the dictionary use the NewBlob(String, String) method.

Properties

Count Count Count

Gets the count of BLOBs associated with the health record item.

Item[String] Item[String] Item[String]

Gets the BLOB with the specified name.

Keys Keys Keys

Gets an ICollection<string> containing the Blob names in the BlobStore.

Values Values Values

Gets an ICollection<Blob> containing the values in the BlobStore.

Methods

Add(Blob) Add(Blob) Add(Blob)

Not supported.

Add(String, Blob) Add(String, Blob) Add(String, Blob)

Not supported.

Clear() Clear() Clear()

Clears all Blob instances from the BlobStore.

Contains(Blob) Contains(Blob) Contains(Blob)

Determines whether the BlobStore contains the specified Blob instance.

ContainsKey(String) ContainsKey(String) ContainsKey(String)

Determines whether the BlobStore contains a Blob with the specified key.

NewBlob(String, String) NewBlob(String, String) NewBlob(String, String)

Creates a BLOB in the store with the specified name, content type, and encoding.

NewBlob(String, String, BlobHashInfo, Uri) NewBlob(String, String, BlobHashInfo, Uri) NewBlob(String, String, BlobHashInfo, Uri)

Recreates a BLOB in the store to allow for restarting multiple BLOB uploads on a HealthRecordItem.

Remove(String) Remove(String) Remove(String)

Removes the Blob with the specified name from the BlobStore.

TryGetValue(String, Blob) TryGetValue(String, Blob) TryGetValue(String, Blob)

Gets the value associated with the specified key.

Write(String, String, Stream) Write(String, String, Stream) Write(String, String, Stream)

Writes the bytes from the specified stream.

WriteInline(String, String, Byte[]) WriteInline(String, String, Byte[]) WriteInline(String, String, Byte[])

Writes the specified bytes to the blob.

Explicit Interface Implementations

ICollection<KeyValuePair<String,Blob>>.Add(KeyValuePair<String,Blob>) ICollection<KeyValuePair<String,Blob>>.Add(KeyValuePair<String,Blob>) ICollection<KeyValuePair<String,Blob>>.Add(KeyValuePair<String,Blob>)

Not supported.

ICollection<KeyValuePair<String,Blob>>.Contains(KeyValuePair<String,Blob>) ICollection<KeyValuePair<String,Blob>>.Contains(KeyValuePair<String,Blob>) ICollection<KeyValuePair<String,Blob>>.Contains(KeyValuePair<String,Blob>)

Determines whether the BlobStore contains the specified item.

ICollection<KeyValuePair<String,Blob>>.CopyTo(KeyValuePair<String,Blob>[], Int32) ICollection<KeyValuePair<String,Blob>>.CopyTo(KeyValuePair<String,Blob>[], Int32) ICollection<KeyValuePair<String,Blob>>.CopyTo(KeyValuePair<String,Blob>[], Int32)

Copies the elements of the BlobStore to an Array, starting at a particular Array index.

ICollection<KeyValuePair<String,Blob>>.IsReadOnly ICollection<KeyValuePair<String,Blob>>.IsReadOnly ICollection<KeyValuePair<String,Blob>>.IsReadOnly

Gets a value indicating whether the BlobStore is read-only.

ICollection<KeyValuePair<String,Blob>>.Remove(KeyValuePair<String,Blob>) ICollection<KeyValuePair<String,Blob>>.Remove(KeyValuePair<String,Blob>) ICollection<KeyValuePair<String,Blob>>.Remove(KeyValuePair<String,Blob>)

Removes the first occurrence of a specific Blob from the BlobStore.

IEnumerable<KeyValuePair<String,Blob>>.GetEnumerator() IEnumerable<KeyValuePair<String,Blob>>.GetEnumerator() IEnumerable<KeyValuePair<String,Blob>>.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Applies to