Share via


FourPartVersionType Simple Type

Defines the type of values used to identify a file version by using a four-part numbering system. The version number identifies the version of all definitions contained within the .sdm file.

<xs:simpleType name="FourPartVersionType">
    <xs:restriction
        base="string"
    >
        <xs:pattern
            value="([0-9]{1,4}|[0-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\.([0-9]{1,4}|[0-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}"
         />
    </xs:restriction>
</xs:simpleType>

Patterns

The following pattern is defined by the FourPartVersionType simple type:

([0-9]{1,4}|[0-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\.([0-9]{1,4}|[0-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}

A version of a file is defined by a four-part number of the form N.N.N.N where 0 <= N < 65535. The numbers correspond to Major.Minor.Build.Revision.