Delen via


ISourceChanger.Done Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Called when all changes are made to the source.

Namespace:  Microsoft.Windows.Design.SourceUpdate
Assembly:  Microsoft.Windows.Design.Markup (in Microsoft.Windows.Design.Markup.dll)

Syntax

'Declaration
Sub Done
'Usage
Dim instance As ISourceChanger

instance.Done()
void Done()
void Done()
function Done()

Remarks

The Done method must be called when all changes are made to the source. If this method is never called, the end of the source might be deleted and the source might otherwise be left in an inconsistent state.

Implementations do not guarantee when the changes will be applied before Done is called. Changes might be cached and performed all at once when Done is called or they might be made incrementally while the CopyTo, MoveTo, and Insert methods are called. All changes are applied and the source is guaranteed to be consistent when Done returns.

Once Done is called, ISourceChanger should be considered in a disposed like state. All subsequent method calls are invalid. However, unlike Dispose, Done should not be called in the finally handler.

.NET Framework Security

See Also

Reference

ISourceChanger Interface

ISourceChanger Members

Microsoft.Windows.Design.SourceUpdate Namespace

Other Resources

WPF Designer Extensibility