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.StringName of the file that the object is to be saved in.
remember
Type: System.Int32Indicates whether the filename parameter is to be used as the current working file.
formatIndex
Type: System.UInt32Value 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
- 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.