patterns Property
A SchemaStringCollection
object is returned. The collection contains the pattern
facets defined for the data type being queried.
Each string in the collection is a pattern construction. This construction uses a special regular expression language for its creation. The content value must match this pattern to be considered valid. For more information about the pattern
facet, see Data Type Facets.
[Script]
Implementation Syntax
var objPatterns = oISchemaType.patterns;
Parameters
None.
Return Values
- objPatterns
- An object. A string collection of the
pattern
facets for the data type.
[Visual Basic]
Implementation Syntax
Set objPatterns = oISchemaType.patterns
Parameters
None.
Return Values
- objPatterns
- An object. A string collection of the
pattern
facets for the data type.
[C/C++]
Implementation Syntax
HRESULT get_patterns(ISchemaStringCollection** patterns);
Parameters
- patterns [out,retval]
- An object. A string collection of the
pattern
facets for the data type.
Return Values
- S_OK
- The value returned if successful.
- E_POINTER
- The value returned if
patterns
parameter is NULL. - E_FAIL
- The value returned if something else is wrong.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
Note If the facet is not used, the property will return an empty string collection.
See Also
Data Type Facets | Parts of Data Types
Applies to: ISchemaType Interface