Connection.Initialized Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when all modules contained in this connection have been initialized.
public:
event EventHandler ^ Initialized;
public event EventHandler Initialized;
member this.Initialized : EventHandler
Public Custom Event Initialized As EventHandler
Event Type
Examples
protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) {
base.Initialize(serviceProvider, moduleInfo);
Connection conx = (Connection)serviceProvider.GetService(typeof(Connection));
conx.Initialized += new EventHandler(conx_Initialized);
void conx_Initialized(object sender, EventArgs e) {
//System.Windows.Forms.MessageBox.Show("Client API - Client.Connection.Initialized", sender.ToString());
}
Remarks
You should register the event handler in the source file that implements the Module object.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for