次の方法で共有


Package.OnSaveOptions Method

Invoked by the Package class when there are options to be saved to the solution file.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Protected Overridable Sub OnSaveOptions ( _
    key As String, _
    stream As Stream _
)
'使用
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
)
protected function OnSaveOptions(
    key : String, 
    stream : Stream
)

Parameters

Remarks

This method can be overridden by the deriving class to save solution options. See the section on the AddOptionKey method for details.

Permissions

See Also

Reference

Package Class

Package Members

Microsoft.VisualStudio.Shell Namespace