MarkLogic XCC/.Net Library |

# ValueFactory.NewXSDuration Method (XdmDuration)

A convenience method to construct an XSDuration value from an XdmDuration object.

[Visual Basic]
Overloads Public Shared Function NewXSDuration( _
ByVal duration As XdmDuration _
) As XSDuration
[C#]
public static XSDuration NewXSDuration(
XdmDuration duration
);

#### Parameters

duration
  An instance XdmDuration

#### Return Value

An instance of XSDuration.

#### See Also

ValueFactory Class | Marklogic.Xcc Namespace | ValueFactory.NewXSDuration Overload List