PersistLoad Method (IMPersist)
name of the loading object
source string or full path of file to be loaded
parameters of loading
Loads the data from string or from file.
Syntax
Sub PersistLoad( _
   ByVal _bsObject As String, _
   ByVal _bsXMLDescOrFile As String, _
   ByVal _bsLoadParam As String _
) 
procedure PersistLoad( 
    _bsObject: String;
    _bsXMLDescOrFile: String;
    _bsLoadParam: String
); 

Parameters

_bsObject
name of the loading object
_bsXMLDescOrFile
source string or full path of file to be loaded
_bsLoadParam
parameters of loading
Example
'load scenes from file
Dim fileDialog As New OpenFileDialog()
If fileDialog.ShowDialog(Me) = DialogResult.OK Then
DirectCast(m_pScenes, IMPersist).PersistLoad("", fileDialog.FileName, "")
FillScenes()
End If
//load scenes from file
OpenFileDialog fileDialog = new OpenFileDialog();
if (fileDialog.ShowDialog(this) == DialogResult.OK)
{
((IMPersist)m_pScenes).PersistLoad("", fileDialog.FileName, "");
FillScenes();
} 
myMixer:= CreateComObject(CLASS_MMixer) as MMixer;
myPersist:= myMixer as IMPersist;
myPersist.PersistLoad('', 'c:\myConfig.xml', '');
See Also

Reference

IMPersist Interface
IMPersist Members