XmlPrime: XML processing for the .NET framework
  • About
  • Documentation
  • Samples
  • Download
  • Buy
XmlPrime Documentation
Sign in | Contact us | Site map
  • XmlPrime Documentation
  • XmlPrime 3.0
  • XmlPrime Class Library
  • XmlPrime NamespaceXmlPrime NamespaceXmlPrime Namespace
  • Duration StructureDuration StructureDuration Structure
  • Duration MethodsDuration MethodsDuration Methods
  • Divide MethodDivide MethodDivide Method

Duration.Divide MethodDuration.Divide MethodDuration::Divide Method

  • XmlPrime 3.0
  • Other Versions ▼
    • XmlPrime 5.0
    • XmlPrime 4.1
    • XmlPrime 4.0
    • XmlPrime 3.1
    • XmlPrime 2.9
    • XmlPrime 2.8
    • XmlPrime 2.7
    • XmlPrime 2.6
    • XmlPrime 2.5
    • XmlPrime 2.4
    • XmlPrime 2.3
    • XmlPrime 2.2
    • XmlPrime 2.1
    • XmlPrime 2.0
    • XmlPrime 1.5
    • XmlPrime 1.4
    • XmlPrime 1.3
    • XmlPrime 1.2
    • XmlPrime 1.1
    • XmlPrime 1.0
Divides the specified DurationDurationDuration value by a doubleDoubledouble value.
  • Namespace: XmlPrimeXmlPrimeXmlPrime
  • Assembly: XmlPrime (in XmlPrime.dll)

Syntax

  • VB
  • C#
  • C++
Public Shared Function Divide( _
    duration As Duration, _
    value As Double _
) As Duration
public static Duration Divide(
    Duration duration,
    double value
)
public:
static Duration Divide(
    Duration duration, 
    double value
)
 

Parameters

duration

Type: XmlPrime.DurationXmlPrime.DurationXmlPrime::Duration

The DurationDurationDuration to divide.

value

Type: System.DoubleSystem.DoubleSystem::Double

The doubleDoubledouble to divide by.

Return Value

Type: XmlPrime.DurationXmlPrime.DurationXmlPrime::Duration

The DurationDurationDuration result of dividing duration by value.

Exceptions

ExceptionCondition
DivideByZeroExceptionDivideByZeroExceptionDivideByZeroExceptionvalue is zero.
OverflowExceptionOverflowExceptionOverflowException The return value would be less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.

See Also

Reference

  • XmlPrime.Duration StructureXmlPrime.Duration StructureXmlPrime::Duration Structure
  • XmlPrime NamespaceXmlPrime NamespaceXmlPrime Namespace
Copyright © 2025 Peryton Technologies Limited. All rights reserved.