QuickObjects.ObjectBase Send comments on this topic.
AfterLoad Event
See Also  Example
Akal.QuickObjects.ObjectBase Namespace > BaseBusinessObject Class : AfterLoad Event
Occurs after an object executes Load command. The Success member of the event arguments can be used to determine if the command executed successfully.

Syntax

C# 
public event AfterCommandEventHandler AfterLoad()

Example

C#Copy Code
private void HandleAfterLoad(object sender, AfterCommandEventArgs e) 

    if (!e.Success) 
    { 
        // since the command was not successfull you can take appropriate action, such as notifying the user of failure. 
        // You can also check the ErrorString property, if there was an exception during execution of the command the message will be contained in the ErrorString property. 
        if (e.BusinessObject.ErrorString != null) 
        {} 
    } 

    

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also