---
title: "The Duration method"
slug: "the-duration-method"
abstract: "Overview of the Duration method and properties."
---
# The Duration method

To define the event duration, use the `Duration()` method.

| Property | Details |
| --- | --- |
| UT SDK methods | `Duration(TimeSpan)` |
| Required/optional | Optional |
| Multiple invocations | Multiple invocations are forbidden and cause an *InvalidOperationException* exception |
| Value validation | Must contain proper TimeSpan value<br><br>Cannot be null |