enumeration Property1
[This feature was only implemented for MSXML 6.0.]
Returns a string collection. This collection contains the enumeration values that can be used for the type. For more information about the enumeration
facet, see Data Type Facets.
JScript Syntax
var oEnumeration = oISchemaType.enumeration;
Parameters
None.
Return Values
oEnumeration
An object. The enumeration
facet of the restriction. This facet is a collection of BSTRs.
Example
The following snippet is taken from the Walk the SOM sample application. In this snippet, the enumeration
collection is retrieved from the ISchemaType
object. The enumeration object is an ISchemaStringCollection
object.
For Each item in oType.enumeration
res = res + printTab(t+1) + "<xsd:enumeration value='" + item + "'/>" + vbNewLine
Next
Visual Basic Syntax
Set oEnumeration = oISchemaType.enumeration
Parameters
None.
Return Values
oEnumeration
An object. The enumeration
facet of the restriction. This facet is a collection of BSTRs.
C/C++ Syntax
HRESULT get_enumeration(ISchemaStringCollection** enumeration);
Parameters
enumeration[out,retval]
An object. The collection of BSTRs.
Return Values
S_OK
The value returned if successful.
E_POINTER
The value returned if the minExclusive
parameter is NULL.
E_FAIL
The value returned if something else is wrong.
Note
If the facet is not used, the property will return an empty collection.
Versioning
Implemented in: MSXML 6.0