SmartFoxServer Silverlight API
SFSEvent..::.OnConfigLoadFailureDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnConfigLoadFailureDelegate
Dispatched when an error occurs while loading the external SmartFoxClient configuration file.
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnConfigLoadFailureDelegate(
    	string message
    )

    Public Delegate Sub OnConfigLoadFailureDelegate ( _
    	message As String _
    )

    public delegate void OnConfigLoadFailureDelegate(
    	String^ message
    )

Parameters

message (String)
  the error message.

Remarks

Since:
SmartFoxServer Pro v1.6.0

Version:
SmartFoxServer Pro

Examples
The following example shows how to handle a potential error in configuration loading.
CopyC#

    SFSEvent.onConfigLoadFailure += OnConfigLoadFailure;

    smartFox.LoadConfig("testEnvironmentConfig.xml");

    public void OnConfigLoadFailure(string message)
    {
        Debug.WriteLine("Failed loading config file: " + message);
    }

See Also
SFSEvent..::.OnConfigLoadSuccessDelegate
LoadConfig(String, Boolean)

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)