Share via


defaultValue Property (ISchemaElement)

 

[This feature was only implemented for MSXML 6.0.]

Returns a string. This string contains the default value of the element being queried. The declaration of this element has a default attribute.

JScript Syntax

var strDefaultValue = oISchemaElement.defaultValue;  

Parameters

None.

Return Values

strDefaultValue
A string. The value of the default attribute in the <element> declaration.

Visual Basic Syntax

strDefaultValue = oISchemaElement.defaultValue  

Parameters

None.

Return Values

strDefaultValue
A string. The value of the default attribute in the <element> declaration.

C/C++ Syntax

HRESULT get_defaultValue(BSTR* defaultValue);  

Parameters

defaultValue[out,retval]
A string. The value of the default attribute in the <element> declaration.

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the defaultValue parameter is NULL.

E_FAIL
The value returned if something else is wrong.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaElement Interface

See Also

element Element