ProjectNode.Save Method

Saves a copy of the object into the specified file.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function Save ( _
    fileToBeSaved As String, _
    remember As Integer, _
    formatIndex As UInteger _
) As Integer
'使用
Dim instance As ProjectNode
Dim fileToBeSaved As String
Dim remember As Integer
Dim formatIndex As UInteger
Dim returnValue As Integer

returnValue = instance.Save(fileToBeSaved, _
    remember, formatIndex)
public virtual int Save(
    string fileToBeSaved,
    int remember,
    uint formatIndex
)
public:
virtual int Save(
    String^ fileToBeSaved, 
    int remember, 
    unsigned int formatIndex
)
public function Save(
    fileToBeSaved : String, 
    remember : int, 
    formatIndex : uint
) : int

Parameters

  • fileToBeSaved
    Type: System.String

    Name of the file that the object is to be saved in.

  • remember
    Type: System.Int32

    Indicates whether the filename parameter is to be used as the current working file.

  • formatIndex
    Type: System.UInt32

    Value that indicates the format in which the file is saved. The caller passes DEF_FORMAT_INDEX if the object is to choose its default (current) format.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IPersistFileFormat.Save(String, Int32, UInt32)

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace