MarkLogic XCC/.Net Library |

# ValueFactory.NewXSDuration Method (String)

A convenience method to construct an XSDuration value.

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

#### Parameters

val
  A String representation of the duration

#### Return Value

An instance of XSDuration.

#### See Also

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