Delen via


Damage Class

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

Tracks the damage made to a document from the time it is created until the StopTracking method is called.

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

Syntax

'Declaration
Public NotInheritable Class Damage _
    Implements IDisposable
'Usage
Dim instance As Damage
public sealed class Damage : IDisposable
public ref class Damage sealed : IDisposable
public final class Damage implements IDisposable

Remarks

This class can be used to narrow the document tree that is checked when you calculate differences between two documents. To create a damage tracker, call the TrackDamage method. This damager tracker can then be passed to the ProduceDelta(DocumentTreeManager, Damage) or SynchronizeWith(DocumentTreeManager, Damage) methods.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Documents.Trees.Damage

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Damage Members

Microsoft.Windows.Design.Documents.Trees Namespace

Other Resources

WPF Designer Extensibility