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 NULL for the scope property. This property is absent in the case of declarations within named model groups.

[Script]

Implementation Syntax

var oScope = oISchemaAttribute.scope;

Parameters

None.

Return Values

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

Implementation Syntax

Set oScope = oISchemaAttribute.scope

Parameters

None.

Return Values

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

Implementation Syntax

HRESULT get_scope(ISchemaComplexType** scope);

Parameters

scope [out,retval]
An object. A <complexType> declaration of the attribute 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.

Note   Globally declared elements will return a NULL value for this property.

See Also

ISchemaItem Interface

Applies to: ISchemaAttribute Interface