 | 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.SchemaAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic decimal MinOccurence(
XName parentName,
XName childName
)
Public Function MinOccurence (
parentName As XName,
childName As XName
) As Decimal
public:
Decimal MinOccurence(
XName^ parentName,
XName^ childName
)
Parameters
- parentName XName
- Name of the child's parent
- childName XName
- Name of the child
Return Value
Decimal0 for optional occurrence or
1 for mandatory occurrence. A value
of
-1 indicates that no occurrences are allowed at all.
See Also