NewBlob Method (String, String)

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

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

public Blob NewBlob(
	string blobName,
	string contentType
)

Parameters

blobName
Type: System..::..String
The name of the BLOB. It can be Empty but cannot be null.
contentType
Type: System..::..String
The content type of the BLOB.

Return Value

The Blob instance that was created in the store.

ExceptionCondition
System..::..ArgumentNullException If blobName or contentType is null.
System..::..ArgumentException If a Blob with the same name already exists in the store. To update an existing Blob, remove the existing Blob and create a new one.
Show: