DocData.SaveDocDataToFile Method
Saves the document to a specific location.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
Protected Overridable Function SaveDocDataToFile ( _
saveOptions As VSSAVEFLAGS, _
<OutAttribute> ByRef fileName As String, _
<OutAttribute> ByRef saveCanceled As Integer, _
uiShell As IVsUIShell _
) As Integer
protected virtual int SaveDocDataToFile(
VSSAVEFLAGS saveOptions,
out string fileName,
out int saveCanceled,
IVsUIShell uiShell
)
protected:
virtual int SaveDocDataToFile(
VSSAVEFLAGS saveOptions,
[OutAttribute] String^% fileName,
[OutAttribute] int% saveCanceled,
IVsUIShell^ uiShell
)
abstract SaveDocDataToFile :
saveOptions:VSSAVEFLAGS *
fileName:string byref *
saveCanceled:int byref *
uiShell:IVsUIShell -> int
override SaveDocDataToFile :
saveOptions:VSSAVEFLAGS *
fileName:string byref *
saveCanceled:int byref *
uiShell:IVsUIShell -> int
protected function SaveDocDataToFile(
saveOptions : VSSAVEFLAGS,
fileName : String,
saveCanceled : int,
uiShell : IVsUIShell
) : int
Parameters
- saveOptions
Type: Microsoft.VisualStudio.Shell.Interop.VSSAVEFLAGS
Flags that describe how to save the document. For a list of flags, see VSSAVEFLAGS.
- fileName
Type: System.String%
The file name of the document.
- saveCanceled
Type: System.Int32%
1 if the save was canceled; otherwise, 0.
- uiShell
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIShell
Visual Studio shell service
Return Value
Type: System.Int32
S_OK if the method succeeds; otherwise, it returns an error code.
.NET Framework Security
- 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.