Dela via


IVsSaveOptionsDlg.ShowSaveOptionsDlg Method

Shows a dialog box from which to choose additional save format options.

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

Syntax

'Declaration
Function ShowSaveOptionsDlg ( _
    dwReserved As UInteger, _
    hwndDlgParent As IntPtr, _
    pszFilename As IntPtr _
) As Integer
int ShowSaveOptionsDlg(
    uint dwReserved,
    IntPtr hwndDlgParent,
    IntPtr pszFilename
)
int ShowSaveOptionsDlg(
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] IntPtr hwndDlgParent, 
    [InAttribute] IntPtr pszFilename
)
abstract ShowSaveOptionsDlg : 
        dwReserved:uint32 * 
        hwndDlgParent:IntPtr * 
        pszFilename:IntPtr -> int
function ShowSaveOptionsDlg(
    dwReserved : uint, 
    hwndDlgParent : IntPtr, 
    pszFilename : IntPtr
) : int

Parameters

  • dwReserved
    Type: UInt32

    [in] Reserved. Do not use.

  • hwndDlgParent
    Type: IntPtr

    [in] The window to use as the save options dialog’s parent.

  • pszFilename
    Type: IntPtr

    [in] The absolute path of the file that is to be saved.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

[C++]

HRESULT IVsSaveOptionsDlg::ShowSaveOptionsDlg(
   [in] DWORD dwReserved, 
   [in] HWND hwndDlgParent, 
   [out] WCHAR * pszFileName 
);

The object is responsible for communicating the chosen options to the save operations and for deciding in what context the options should be persisted. If macro recording is on, the object must emit appropriate macro code to record the changes made to the options.

.NET Framework Security

See Also

Reference

IVsSaveOptionsDlg Interface

Microsoft.VisualStudio.Shell.Interop Namespace