Ensure the click events are associated with their event - handling methods in this example 請(qǐng)確保該click事件已與此示例中的事件處理方法關(guān)聯(lián)。
Method is called , because the event - handling method might already be executing when the 方法時(shí)的時(shí)間進(jìn)行比較無法防止此競(jìng)爭(zhēng)條件的出現(xiàn),因?yàn)楫?dāng)調(diào)用
Double - click the button on form1 , to create an event - handling method for the button s 雙擊form1上的“ button ” ,以創(chuàng)建按鈕click事件的事件處理方法。
Method is called in an event - handling method for an event that raises a post back to the server 通常,在引發(fā)回發(fā)到服務(wù)器的事件的事件處理方法中調(diào)用
Page event handlers are not required to take parameters as other event - handling methods do 頁事件處理程序不必使用參數(shù),這一點(diǎn)與其他事件處理方法不同。
When the event - handling method exits , even that instance will be released , because the variable 當(dāng)事件處理方法退出時(shí),即便是該實(shí)例也將被釋放,因?yàn)樽兞?i class="labawb" onClick="playMp3('sound_c_6')">
The event - handling method is called whenever the event occurs , unless you remove the delegate 除非移除委托,否則每當(dāng)事件發(fā)生時(shí)都會(huì)調(diào)用該事件處理方法。
Thread , so the event - handling method might run on one thread at the same time that a call to the 線程上引發(fā),因此事件處理方法可以運(yùn)行在一個(gè)線程上,同時(shí)
The signature of the event - handling method is identical to the signature of the event - handler delegate 事件處理方法的簽名與事件處理程序委托的簽名是相同的。
To associate the event with your event - handling method , add an instance of the delegate to the event 若要使事件與事件處理方法相關(guān)聯(lián),請(qǐng)將委托的實(shí)例添加到該事件中。