Click or drag to resize

TpsControlIsDisposed Property

Gets or sets a value indicating whether the object has already been disposed or not.

Namespace:  ABB.Robotics.Tps.Windows.Forms
Assembly:  ABB.Robotics.Tps.Windows.Forms (in ABB.Robotics.Tps.Windows.Forms.dll) Version: 6.5.129.0
Syntax
C#
protected bool IsDisposed { get; }

Property Value

Type: Boolean
true if the object has already been disposed; otherwise, false.
Remarks
This variable is not thread safe.
Examples
This example shows how a derived class can use this variable to ensure to dispose objects just once.
protected override void Dispose(bool disposing)
{
    if(!IsDisposed)
    {
        if(disposing)
        {
            // Release the managed resources you added in
            // this derived class here.
        }
        // Release the native unmanaged resources you added
        // in this derived class here.

        // Call Dispose on your base class.
        base.Dispose(disposing);                            
    }
}
See Also