# OpcHistoryModificationInfo Members

> Reference: Represents the information about a modification of the history of a node: the kind and the time of the modification and the user who made it.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcHistoryModificationInfo</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Constructors

### OpcHistoryModificationInfo

<span class="api-meta">3 overloads</span>

| Overload | Description |
|---|---|
| [OpcHistoryModificationInfo(OpcHistoryModificationType)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#opchistorymodificationinfo-opc-uafx-opchistorymodificationtype) | Initializes a new instance of the [OpcHistoryModificationInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/) class using the `type` specified, whose [Time](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#time) is the current time (UTC). |
| [OpcHistoryModificationInfo(OpcHistoryModificationType, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#opchistorymodificationinfo-opc-uafx-opchistorymodificationtype-system-string) | Initializes a new instance of the [OpcHistoryModificationInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/) class using the `type` and `userName` specified, whose [Time](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#time) is the current time (UTC). |
| [OpcHistoryModificationInfo(OpcHistoryModificationType, string, DateTime)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#opchistorymodificationinfo-opc-uafx-opchistorymodificationtype-system-string-system-datetime) | Initializes a new instance of the [OpcHistoryModificationInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/) class using the `type`, `userName` and `timestamp` specified. |

#### OpcHistoryModificationInfo(OpcHistoryModificationType)

Initializes a new instance of the [OpcHistoryModificationInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/) class using the `type` specified, whose [Time](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#time) is the current time (UTC).

<div class="api-signature" data-lang="csharp">

```csharp
public OpcHistoryModificationInfo(OpcHistoryModificationType type)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(type As OpcHistoryModificationType)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcHistoryModificationType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationtype/) | The kind of the modification. |

#### OpcHistoryModificationInfo(OpcHistoryModificationType, string)

Initializes a new instance of the [OpcHistoryModificationInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/) class using the `type` and `userName` specified, whose [Time](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#time) is the current time (UTC).

<div class="api-signature" data-lang="csharp">

```csharp
public OpcHistoryModificationInfo(
    OpcHistoryModificationType type,
    string userName)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(type As OpcHistoryModificationType, userName As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcHistoryModificationType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationtype/) | The kind of the modification. |
| `userName` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the user who made the modification. |

#### OpcHistoryModificationInfo(OpcHistoryModificationType, string, DateTime)

Initializes a new instance of the [OpcHistoryModificationInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/) class using the `type`, `userName` and `timestamp` specified.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcHistoryModificationInfo(
    OpcHistoryModificationType type,
    string userName,
    DateTime timestamp)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Sub New(
    type As OpcHistoryModificationType,
    userName As String,
    timestamp As Date)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcHistoryModificationType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationtype/) | The kind of the modification. |
| `userName` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the user who made the modification. |
| `timestamp` | [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) | The time of the modification. |

## Properties

### Time

Gets the time of the modification.

<div class="api-signature" data-lang="csharp">

```csharp
public DateTime Time { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property Time As Date
```

</div>

**Property value**

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

The time of the modification.

### Type

Gets the kind of the modification.

<div class="api-signature" data-lang="csharp">

```csharp
public OpcHistoryModificationType Type { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property Type As OpcHistoryModificationType
```

</div>

**Property value**

[OpcHistoryModificationType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationtype/)

One of the members of [OpcHistoryModificationType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationtype/).

### UserName

Gets the name of the user who made the modification.

<div class="api-signature" data-lang="csharp">

```csharp
public string UserName { get; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public ReadOnly Property UserName As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The name of the user or a null reference (Nothing in Visual Basic) if no name has been specified.

## Methods

### ToString

<span class="api-meta">override</span>

Returns a string that represents the modification information.

<div class="api-signature" data-lang="csharp">

```csharp
public override string ToString()
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Overrides Function ToString() As String
```

</div>

**Returns**

[String](https://learn.microsoft.com/dotnet/api/system.string)

A string containing the [Time](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#time), the [Type](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#type) and, if specified, the [UserName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opchistorymodificationinfo/members#username).

**Overrides**

[ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)
