Share via


WritableSettingsStore.SetMemoryStream(String, String, MemoryStream) Method

Definition

Updates the value of the specified property to the bits of the MemoryStream while setting its data type to Binary. If the previous data type of the property is different, it overwrites it. If the property does not exist it creates one.

public:
 abstract void SetMemoryStream(System::String ^ collectionPath, System::String ^ propertyName, System::IO::MemoryStream ^ value);
public abstract void SetMemoryStream (string collectionPath, string propertyName, System.IO.MemoryStream value);
abstract member SetMemoryStream : string * string * System.IO.MemoryStream -> unit
Public MustOverride Sub SetMemoryStream (collectionPath As String, propertyName As String, value As MemoryStream)

Parameters

collectionPath
String

Path of the collection of the property.

propertyName
String

Name of the property.

value
MemoryStream

MemoryStream to set the bits of the property.

Exceptions

If the collection does not exist, this exception is thrown.

Remarks

This method is safe to access from any thread.

Applies to