Click or drag to resize

XmlSchemaManagerMinOccurence Method

The minimal occurrence for child node with the defined name under a parent node with the defined name. If 0 is returned, the existence of a child node with that node is optional. If 1 is returned, the existence is mandatory.

Namespace: Aml.Engine.Schema
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public decimal MinOccurence(
	XName parentName,
	XName childName
)

Parameters

parentName  XName
Name of the child's parent
childName  XName
Name of the child

Return Value

Decimal
0 for optional occurrence or 1 for mandatory occurrence. A value of -1 indicates that no occurrences are allowed at all.
See Also