ISuspend |
public interface ISuspendToken : IDisposable
The ISuspendToken type exposes the following members.
Name | Description | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable) | |
Resume | Decrements the suspend level of the parent object. If the suspend level falls to zero during this call, the resume function is called. The object should then resume all child objects, and then indicate that it has changed to its parent and to any other listeners of the Change event. | |
Resume(EventFiring) | Either resumes the parent object of this token (using Resume), or resumes silently (using ResumeSilently), depending on the provided argument. | |
ResumeCompleteTemporarily | Resumes the object suspended by this token completely for a short time. | |
ResumeCompleteTemporarilyGetToken | Resumes the object suspended by this token completely for the time the returned token is referenced and not disposed. The return value is another token that had 'absorbed' the suspend count of the object, resulting in a suspend count of the object of 0 (zero). When these other token is finally disposed, the suspend count of the object is increased again by the 'absorbed' suspend count. | |
ResumeSilently | Disarms this SuspendToken and decrements the suspend level of the parent object. If the suspend level falls to zero during this call, the resume function is not called. Instead, usually another function (e.g. ResumeSilently) is called on the parent object to indicate that the object should be resumed without notifying that the object has changed. |