Nevron .NET Vision
Nevron.Serialization Namespace / NControlSerializer Class / LoadControlStateFromFile Method / LoadControlStateFromFile(String,PersistencyFormat,INSerializationFilter) Method
A relative or absolute path for the input file.
The format of the file.
A serialization filter.
Example


In This Topic
    LoadControlStateFromFile(String,PersistencyFormat,INSerializationFilter) Method
    In This Topic
    Loads the control state from the specified file.
    Syntax
    'Declaration
     
    
    Public Overloads MustOverride Sub LoadControlStateFromFile( _
       ByVal filePath As System.String, _
       ByVal format As PersistencyFormat, _
       ByVal filter As INSerializationFilter _
    ) 
    'Usage
     
    
    Dim instance As NControlSerializer
    Dim filePath As System.String
    Dim format As PersistencyFormat
    Dim filter As INSerializationFilter
     
    instance.LoadControlStateFromFile(filePath, format, filter)
    public abstract void LoadControlStateFromFile( 
       System.string filePath,
       PersistencyFormat format,
       INSerializationFilter filter
    )

    Parameters

    filePath
    A relative or absolute path for the input file.
    format
    The format of the file.
    filter
    A serialization filter.
    Remarks
    The filter parameters is used only when the format is CustomXML or CustomBinary.
    Example
    The following example loads a new state and repaints the control:
    ncontrolControl1.Serializer.LoadControlStateFromFile("c:\control.bin", PersistencyFormat.Binary, Nothing)
    ncontrolControl1.Serializer.LoadControlStateFromFile("c:\control.bin", PersistencyFormat.Binary, null);
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also