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
  • YearMonthDuration StructureYearMonthDuration StructureYearMonthDuration Structure
  • YearMonthDuration MethodsYearMonthDuration MethodsYearMonthDuration Methods
  • Negate MethodNegate MethodNegate Method

YearMonthDuration.Negate MethodYearMonthDuration.Negate MethodYearMonthDuration::Negate 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
Negates the value of the specified YearMonthDurationYearMonthDurationYearMonthDuration operand.
  • Namespace: XmlPrimeXmlPrimeXmlPrime
  • Assembly: XmlPrime (in XmlPrime.dll)

Syntax

  • VB
  • C#
  • C++
Public Shared Function Negate( _
    duration As YearMonthDuration _
) As YearMonthDuration
public static YearMonthDuration Negate(
    YearMonthDuration duration
)
public:
static YearMonthDuration Negate(
    YearMonthDuration duration
)
 

Parameters

duration

Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration

The YearMonthDurationYearMonthDurationYearMonthDuration operand.

Return Value

Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration

The additive inverse of YearMonthDurationYearMonthDurationYearMonthDuration.

Exceptions

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

See Also

Reference

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