Sdílet prostřednictvím


DocData.SaveDocDataToFile(VSSAVEFLAGS, String, Int32, IVsUIShell) Method

Definition

Save as the doc data to a file

protected:
 virtual int SaveDocDataToFile(Microsoft::VisualStudio::Shell::Interop::VSSAVEFLAGS saveOptions, [Runtime::InteropServices::Out] System::String ^ % fileName, [Runtime::InteropServices::Out] int % saveCanceled, Microsoft::VisualStudio::Shell::Interop::IVsUIShell ^ uiShell);
protected virtual int SaveDocDataToFile (Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS saveOptions, out string fileName, out int saveCanceled, Microsoft.VisualStudio.Shell.Interop.IVsUIShell uiShell);
abstract member SaveDocDataToFile : Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS * string * int * Microsoft.VisualStudio.Shell.Interop.IVsUIShell -> int
override this.SaveDocDataToFile : Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS * string * int * Microsoft.VisualStudio.Shell.Interop.IVsUIShell -> int
Protected Overridable Function SaveDocDataToFile (saveOptions As VSSAVEFLAGS, ByRef fileName As String, ByRef saveCanceled As Integer, uiShell As IVsUIShell) As Integer

Parameters

saveOptions
VSSAVEFLAGS

Flags that describe how to save the document.

fileName
String

Name of the file that was saved.

saveCanceled
Int32

1 if the save was cancelled.

uiShell
IVsUIShell

vs shell service

Returns

S_OK if succeed

Applies to