Share via


RepeatBehaviorHelper.FromDuration(TimeSpan) Method

Definition

Creates a new RepeatBehavior based on a timespan. C# and Microsoft Visual Basic code should use RepeatBehavior(TimeSpan) instead.

 static RepeatBehavior FromDuration(TimeSpan const& duration);
public static RepeatBehavior FromDuration(System.TimeSpan duration);
function fromDuration(duration)
Public Shared Function FromDuration (duration As TimeSpan) As RepeatBehavior

Parameters

duration
TimeSpan TimeSpan

The time span that declares the desired repeat behavior.

Returns

The created RepeatBehavior, which has a RepeatBehaviorType value of Duration.

Applies to