Bewerken

Delen via


DesignSurface.Loaded Event

Definition

Occurs when the designer load has completed.

public:
 event System::ComponentModel::Design::LoadedEventHandler ^ Loaded;
public event System.ComponentModel.Design.LoadedEventHandler Loaded;
public event System.ComponentModel.Design.LoadedEventHandler? Loaded;
member this.Loaded : System.ComponentModel.Design.LoadedEventHandler 
Public Custom Event Loaded As LoadedEventHandler 
Public Event Loaded As LoadedEventHandler 

Event Type

Remarks

The Loaded event is raised for successful loads as well as unsuccessful ones. If code in this event handler throws an exception, the designer is unloaded.

The LoadedEventArgs object can be used to determine if loading succeeded, and it can also provide a list of errors that occurred during the load.

Note

Errors can occur for successful loads as well, provided that the serialization system can tolerate errors.

Applies to