Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NServerSettings Class / LoadFromFile Method


In This Topic
    LoadFromFile Method (NServerSettings)
    In This Topic
    Loads the server configuration state from a web.config file pointed by file.
    Syntax
    'Declaration
     
    
    Public Shared Function LoadFromFile( _
       ByVal file As System.String, _
       ByVal serverConfigSectionName As System.String _
    ) As NServerSettings
    'Usage
     
    
    Dim file As System.String
    Dim serverConfigSectionName As System.String
    Dim value As NServerSettings
     
    value = NServerSettings.LoadFromFile(file, serverConfigSectionName)
    public static NServerSettings LoadFromFile( 
       System.string file,
       System.string serverConfigSectionName
    )

    Parameters

    file
    serverConfigSectionName
    Remarks
    This function will throw an exception if it is unable to open the file or the web.congig file is invalid
    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