Modifier

Partager via


MediaTimeline.GetNaturalDurationCore(Clock) Method

Definition

Retrieves the Duration from a specified clock.

protected:
 override System::Windows::Duration GetNaturalDurationCore(System::Windows::Media::Animation::Clock ^ clock);
protected override System.Windows.Duration GetNaturalDurationCore (System.Windows.Media.Animation.Clock clock);
override this.GetNaturalDurationCore : System.Windows.Media.Animation.Clock -> System.Windows.Duration
Protected Overrides Function GetNaturalDurationCore (clock As Clock) As Duration

Parameters

clock
Clock

The Clock whose natural duration is desired.

Returns

If clock is a MediaClock, the NaturalDuration value of the MediaPlayer associated with clock, or Automatic if the clock is not a MediaClock.

Applies to