共用方式為


IVsUIShell.GetSaveFileNameViaDlg(VSSAVEFILENAMEW[]) Method

Definition

Brings up the Save As dialog box to save a file.

public:
 int GetSaveFileNameViaDlg(cli::array <Microsoft::VisualStudio::Shell::Interop::VSSAVEFILENAMEW> ^ pSaveFileName);
int GetSaveFileNameViaDlg(std::Array <Microsoft::VisualStudio::Shell::Interop::VSSAVEFILENAMEW> const & pSaveFileName);
public int GetSaveFileNameViaDlg (Microsoft.VisualStudio.Shell.Interop.VSSAVEFILENAMEW[] pSaveFileName);
abstract member GetSaveFileNameViaDlg : Microsoft.VisualStudio.Shell.Interop.VSSAVEFILENAMEW[] -> int
Public Function GetSaveFileNameViaDlg (pSaveFileName As VSSAVEFILENAMEW()) As Integer

Parameters

pSaveFileName
VSSAVEFILENAMEW[]

[in, out] Pointer to a save file name structure that contains information used to initialize the dialog box. When this method returns, this structure contains information about the file name selected by the user.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShell::GetSaveFileNameViaDlg(  
   [in,out] VSSAVEFILENAMEW *pSaveFileName  
);  

Use the VSSAVEFILENAMEW structure to facilitate conversion from GetOpenFileNameW system API.

Applies to