scope Property

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SOM Reference

scope Property

Returns an ISchemaComplexType. The complex type is a definition of the locally declared complex type. Globally declared types will return a value of NULL for the scope property. This property is absent in the case of declarations within named model groups.

[Script]

Implementation Syntax

var oScope = oISchemaElement.scope;

Parameters

None.

Return Values

oScope
An object. A <complexType> declaration of the element being queried.
[Visual Basic]

Implementation Syntax

Set oScope = oISchemaAttribute.scope

Parameters

None.

Return Values

oScope
An object. A <complexType>declaration of the element being queried.
[C/C++]

Implementation Syntax

HRESULT get_scope(ISchemaComplexType** scopeType);

Parameters

scopeType [out,retval]
An object. A <complexType>declaration of the element being queried.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the scope 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 Language Filter in the upper-left corner of the page.

See Also

ISchemaComplexType Interface

Applies to: ISchemaElement Interface