    

 ## On this page

  

 

 # Class ObjectBasePatchsetAddRemovePatchesEvent

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL.FE.History](VM.Managed.DAFUL.FE.History.md)  
Assembly: VMFE.dll

This base class is to represent the add/remove event for patchset.

```csharp
public abstract class ObjectBasePatchsetAddRemovePatchesEvent : HistoryEvent

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← HistoryEvent ← [ObjectBasePatchsetAddRemovePatchesEvent](VM.Managed.DAFUL.FE.History.ObjectBasePatchsetAddRemovePatchesEvent.md)

#### Derived

[ObjectBasePatchsetAddPatchesEvent](VM.Managed.DAFUL.FE.History.ObjectBasePatchsetAddPatchesEvent.md), [ObjectBasePatchsetRemovePatchesEvent](VM.Managed.DAFUL.FE.History.ObjectBasePatchsetRemovePatchesEvent.md)

#### Inherited Members

HistoryEvent.ClearEvent(bool), HistoryEvent.Undo(HistoryEventArgs), HistoryEvent.Redo(HistoryEventArgs), HistoryEvent.Clear(bool), HistoryEvent.BeforeUndo(HistoryEventArgs), HistoryEvent.AfterUndo(HistoryEventArgs), HistoryEvent.BeforeRedo(HistoryEventArgs), HistoryEvent.AfterRedo(HistoryEventArgs), HistoryEvent.BeforeAdded(AddToHistoryManagerEventArgs), HistoryEvent.AfterAdded(HistoryEventArgs), HistoryEvent.IsValid

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### ObjectBasePatchsetAddRemovePatchesEvent(object, ICollection&lt;Patch&gt;)

```csharp
public ObjectBasePatchsetAddRemovePatchesEvent(object obOriginal, ICollection<Patch> patches)

```

#### Parameters

`obOriginal` [object](https://learn.microsoft.com/dotnet/api/system.object)

`patches` [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)&lt;[Patch](VM.Managed.DAFUL.FE.Patch.md)&gt;

## Methods

### AddPatches()

```csharp
protected void AddPatches()

```

### AfterRedo(HistoryEventArgs)

```csharp
protected override void AfterRedo(HistoryEventArgs args)

```

#### Parameters

`args` HistoryEventArgs

### AfterUndo(HistoryEventArgs)

```csharp
protected override void AfterUndo(HistoryEventArgs args)

```

#### Parameters

`args` HistoryEventArgs

### Clear(bool)

```csharp
protected override void Clear(bool bReserveReferenceCount)

```

#### Parameters

`bReserveReferenceCount` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### RefreshNavigator()

```csharp
protected void RefreshNavigator()

```

### RemovePatches()

```csharp
protected void RemovePatches()

```