Package.OnSaveOptions Method
Invoked by the Package class when there are options to be saved to the solution file.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Protected Overridable Sub OnSaveOptions ( _
key As String, _
stream As Stream _
)
'Usage
Dim key As String
Dim stream As Stream
Me.OnSaveOptions(key, stream)
protected virtual void OnSaveOptions(
string key,
Stream stream
)
protected:
virtual void OnSaveOptions(
String^ key,
Stream^ stream
)
abstract OnSaveOptions :
key:string *
stream:Stream -> unit
override OnSaveOptions :
key:string *
stream:Stream -> unit
protected function OnSaveOptions(
key : String,
stream : Stream
)
Parameters
- key
Type: System.String
The name of the option key to save.
- stream
Type: System.IO.Stream
The stream to save the option data to.
Remarks
This method can be overridden by the deriving class to save solution options. See the section on the AddOptionKey method for details.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.