PersistSaveToFile Method (MElementClass)
name of the saving object
full file path for saving
parameters of saving
Saves the configuration data to the file.
Syntax
Public Overridable Sub PersistSaveToFile( _
   ByVal _bsObject As String, _
   ByVal _bsFileName As String, _
   ByVal _bsSaveParam As String _
) 
public virtual void PersistSaveToFile( 
   string _bsObject,
   string _bsFileName,
   string _bsSaveParam
)
public procedure PersistSaveToFile( 
    _bsObject: String;
    _bsFileName: String;
    _bsSaveParam: String
); virtual; 
public: virtual void PersistSaveToFile( 
   BSTR* _bsObject,
   BSTR* _bsFileName,
   BSTR* _bsSaveParam
) 

Parameters

_bsObject
name of the saving object
_bsFileName
full file path for saving
_bsSaveParam
parameters of saving
Example
Dim fileDialog As New SaveFileDialog()
If fileDialog.ShowDialog(Me) = DialogResult.OK Then
DirectCast(m_pScenes, IMPersist).PersistSaveToFile("", fileDialog.FileName, "separate-files=true")
End If
SaveFileDialog fileDialog = new SaveFileDialog();
if (fileDialog.ShowDialog(this) == DialogResult.OK)
{
((IMPersist)m_pScenes).PersistSaveToFile("", fileDialog.FileName, "separate-files=true");
}
myMixer:= CreateComObject(CLASS_MMixer) as MMixer;
myPersist:= myMixer as IMPersist;
myPersist.PersistSaveToFile('', 'c:\myConfig.xml', eparate-files=true');
See Also

Reference

MElementClass Class
MElementClass Members