IVsUIShell.GetSaveFileNameViaDlg Method
Brings up the Save As dialog box to save a file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function GetSaveFileNameViaDlg ( _
<OutAttribute> pSaveFileName As VSSAVEFILENAMEW() _
) As Integer
'使用
Dim instance As IVsUIShell
Dim pSaveFileName As VSSAVEFILENAMEW()
Dim returnValue As Integer
returnValue = instance.GetSaveFileNameViaDlg(pSaveFileName)
int GetSaveFileNameViaDlg(
VSSAVEFILENAMEW[] pSaveFileName
)
int GetSaveFileNameViaDlg(
[InAttribute] [OutAttribute] array<VSSAVEFILENAMEW>^ pSaveFileName
)
function GetSaveFileNameViaDlg(
pSaveFileName : VSSAVEFILENAMEW[]
) : int
Parameters
pSaveFileName
Type: [][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.
Return Value
Type: System.Int32
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.
Permissions
- 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.