WritableSettingsStore::SetMemoryStream Method (String^, String^, MemoryStream^)
Visual Studio 2015
Updates the value of the specified property to the bits of the MemoryStream while setting its data type to !:SettingsType.Binary.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: virtual void SetMemoryStream( String^ collectionPath, String^ propertyName, MemoryStream^ value ) abstract
Parameters
- collectionPath
-
Type:
System::String^
Path of the collection of the property.
- propertyName
-
Type:
System::String^
Name of the property.
- value
-
Type:
System.IO::MemoryStream^
MemoryStream to set the bits of the property.
| Exception | Condition |
|---|---|
| ArgumentException | If the collection does not exist, this exception is thrown. |
If the previous data type of the property is different, it overwrites it.
If the property does not exist, it creates one.
Show: