Share via


isReference Property

 

[This feature was only implemented for MSXML 6.0.]

Returns a Boolean variant. A value of true indicates that the XML schema attribute object is a reference to a top-level <element> declaration.

JScript Syntax

var bolIsReference = oISchemaAttribute.isReference;  

Parameters

None.

Return Values

bolIsReference
A Boolean variant. Indicates whether the XML Schema attribute object is a reference to a top-level <element> declaration.

Example

The following snippet is taken from the Walk the SOM sample application. In this snippet, the isReference property is retrieved from the ISchemaAttribute object.

If oAttr.isReference Then
            printAttr = printAttr + printTab(t) + "<xsd:attribute ref='" + oAttr.name + "'"
        Else

Visual Basic Syntax

bolIsReference = oISchemaAttribute.isReference  

Parameters

None.

Return Values

bolIsReference
A Boolean variant. Indicates whether the XML schema attribute object is a reference to a top-level <element> declaration

C/C++ Syntax

HRESULT get_isReference (VARIANT_BOOL* isReference);  

Parameters

isReference[out,retval]
A Boolean variant. Indicates whether the XML schema attribute object is a reference to a top-level <element> declaration

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the isReference parameter is NULL.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaAttribute Interface

See Also

attribute Element
Declaring Attributes