AppRecordingResult.Duration Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the duration of the recorded file.
public:
property TimeSpan Duration { TimeSpan get(); };
TimeSpan Duration();
public System.TimeSpan Duration { get; }
var timeSpan = appRecordingResult.duration;
Public ReadOnly Property Duration As TimeSpan
Property Value
The duration of the recorded file.
Remarks
RecordTimeSpanToFileAsync allows you to specify a requested duration for the app recording, but it is possible a recording to complete successfully, but for a shorter duration than requested, such as if the allocated storage space for recordings is filled. Check the value of the IsFileTruncated property to determine if the file was truncated.