Compartir a través de


WritableSettingsStore.SetMemoryStream Method

Updates the value of the specified property to the bits of the MemoryStream while setting its data type to [!:SettingsType.Binary].

Namespace:  Microsoft.VisualStudio.Settings
Assemblies:   Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)

Syntax

'Declaration
Public MustOverride Sub SetMemoryStream ( _
    collectionPath As String, _
    propertyName As String, _
    value As MemoryStream _
)
public abstract void SetMemoryStream(
    string collectionPath,
    string propertyName,
    MemoryStream value
)
public:
virtual void SetMemoryStream(
    String^ collectionPath, 
    String^ propertyName, 
    MemoryStream^ value
) abstract
abstract SetMemoryStream : 
        collectionPath:string * 
        propertyName:string * 
        value:MemoryStream -> unit
public abstract function SetMemoryStream(
    collectionPath : String, 
    propertyName : String, 
    value : MemoryStream
)

Parameters

  • collectionPath
    Type: String

    Path of the collection of the property.

  • propertyName
    Type: String

    Name of the property.

  • value
    Type: MemoryStream

    MemoryStream to set the bits of the property.

Exceptions

Exception Condition
ArgumentException

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

Remarks

If the previous data type of the property is different, it overwrites it.

If the property does not exist, it creates one.

.NET Framework Security

See Also

Reference

WritableSettingsStore Class

Microsoft.VisualStudio.Settings Namespace