defaultValue Property
Returns a string. This string is the default value of the attribute being queried. The <attribute> declaration includes the default attribute.
Example
The following is an example of a default attribute in an XML Schema.
<schema>
<element name="someelement">
<attribute name="someattribute" default="attr text" type="string"/>
</element>
</schema>
[Script]
Implementation Syntax
var strDefaultValue = oISchemaAttribute.defaultValue;
Parameters
None.
Return Values
- strDefaultValue
- A string. The value of the
defaultattribute.
[Visual Basic]
Implementation Syntax
strDefaultValue = oISchemaAttribute.defaultValue
Parameters
None.
Return Values
- strDefaultValue
- A string. The value of the
defaultattribute.
[C/C++]
Implementation Syntax
HRESULT get_defaultValue(BSTR* defaultValue);
Parameters
- defaultValue [out,retval]
- A string. The value of the
defaultattribute.
Return Values
- S_OK
- The value returned if successful.
- E_POINTER
- The value returned if the
defaultValueparameter 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.
See Also
Applies to: ISchemaAttribute Interface
