Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the smallest value of all of the numerical elements in a node set.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Function Min ( _
pxmllistInput As IXMLDOMNodeList _
) As Object
'Usage
Dim instance As IPMath
Dim pxmllistInput As IXMLDOMNodeList
Dim returnValue As Object
returnValue = instance.Min(pxmllistInput)
Object Min(
IXMLDOMNodeList pxmllistInput
)
Parameters
pxmllistInput
Type: Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNodeListThe node set to search for the smallest value.
Return Value
Type: System.Object
An object that represents the smallest value of all the numerical elements in a node set.
Remarks
Important
This member can be accessed without restrictions.
Examples
In the following example, the variable minAge is set to the smallest age value in my:ages, and is returned in a repeating section or table with a field named "ages." An alert is also shown with the smallest age value.
IXMLDOMNodeList ages = thisXDocument.DOM.selectNodes("//my:ages");
object minAge = thisXDocument.Util.Math.Min(ages);
thisXDocument.UI.Alert(minAge.ToString());