suite4.net.FormDatabase Documentation

WebLoaderAlert.SerializeToSwfXml Method ()

Serializes the WebLoaderAlert for processing by the WebLoader component.

[Visual Basic]
Overloads Public Function SerializeToSwfXml() As String
[C#]
public string SerializeToSwfXml();

Return Value

An XML string representing the WebLoaderAlert.

Remarks

The WebLoader component will parse the XML string and create an alert box based on the string's contents.

Example


C# sample

private string AlertException(System.Exception ex)
{
    suite4.net.FormDatabase.WebLoaderAlert    webLoaderAlert;

    webLoaderAlert = new suite4.net.FormDatabase.WebLoaderAlert();
    webLoaderAlert.Title = ex.Source;
    webLoaderAlert.Message = ex.Message;
    return webLoaderAlert.SerializeToSwfXml();
} // end private string AlertException(System.Exception ex)
            

VB.Net sample
Private Function AlertException(ByVal ex As System.Exception) As String
    Dim webLoaderAlert As suite4.net.FormDataMyBase.WebLoaderAlert

    webLoaderAlert = New suite4.net.FormDataMyBase.WebLoaderAlert()
    webLoaderAlert.Title = ex.Source
    webLoaderAlert.Message = ex.Message
    Return webLoaderAlert.SerializeToSwfXml()
End Function
            

See Also

WebLoaderAlert Class | suite4.net.FormDatabase Namespace | WebLoaderAlert.SerializeToSwfXml Overload List