Share via


DocData.Save Method (String, Int32, UInt32)

Saves the document.

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 Save ( _
    fileName As String, _
    remember As Integer, _
    formatIndex As UInteger _
) As Integer
public int Save(
    string fileName,
    int remember,
    uint formatIndex
)
public:
virtual int Save(
    String^ fileName, 
    int remember, 
    unsigned int formatIndex
) sealed
abstract Save : 
        fileName:string * 
        remember:int * 
        formatIndex:uint32 -> int  
override Save : 
        fileName:string * 
        remember:int * 
        formatIndex:uint32 -> int
public final function Save(
    fileName : String, 
    remember : int, 
    formatIndex : uint
) : int

Parameters

  • remember
    Type: System.Int32

    1 to retain the file name as the name of the document; otherwise, 0.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, E_ABORT.

Implements

IPersistFileFormat.Save(String, Int32, UInt32)

Remarks

This method implements the IPersistFileFormat interface.

.NET Framework Security

See Also

Reference

DocData Class

Save Overload

Microsoft.VisualStudio.Modeling.Shell Namespace