ServicedComponent.Deactivate Method
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.
Called by the infrastructure when the object is about to be deactivated. Override this method to add custom finalization code to objects when just-in-time (JIT) compiled code or object pooling is used.
protected public:
virtual void Deactivate();
protected internal virtual void Deactivate ();
abstract member Deactivate : unit -> unit
override this.Deactivate : unit -> unit
Protected Friend Overridable Sub Deactivate ()
Examples
The following code example demonstrates the use of this method.
virtual void Deactivate() override
{
MessageBox::Show( "Bye Bye!" );
}
protected override void Deactivate()
{
MessageBox.Show("Bye Bye!");
}
Protected Overrides Sub Deactivate()
MessageBox.Show("Bye Bye!")
End Sub
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.