Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Saves the document to a specific location.
Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Public Function SaveDocData ( _
    flags As VSSAVEFLAGS, _
    <OutAttribute> ByRef fileName As String, _
    <OutAttribute> ByRef saveCanceled As Integer _
) As Integer
public int SaveDocData(
    VSSAVEFLAGS flags,
    out string fileName,
    out int saveCanceled
)
public:
virtual int SaveDocData(
    VSSAVEFLAGS flags, 
    [OutAttribute] String^% fileName, 
    [OutAttribute] int% saveCanceled
) sealed
abstract SaveDocData : 
        flags:VSSAVEFLAGS * 
        fileName:string byref * 
        saveCanceled:int byref -> int  
override SaveDocData : 
        flags:VSSAVEFLAGS * 
        fileName:string byref * 
        saveCanceled:int byref -> int
public final function SaveDocData(
    flags : VSSAVEFLAGS, 
    fileName : String, 
    saveCanceled : int
) : int
Parameters
- flags 
 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. 
Return Value
Type: System.Int32
S_OK if the method succeeds; otherwise, it returns an error code.
Implements
IVsPersistDocData2.SaveDocData(VSSAVEFLAGS, String%, Int32%)
IVsPersistDocData.SaveDocData(VSSAVEFLAGS, String%, Int32%)
Remarks
This method is typically used with the Save As option.
This method implements the IVsPersistDocData2 interface.
.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.