Partager via


scope Property (ISchemaElement)

 

[This feature was only implemented for MSXML 6.0.]

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.

JScript Syntax

var oScope = oISchemaElement.scope;  

Parameters

None.

Return Values

oScope
An object. A <complexType> declaration of the element being queried.

Example

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

If Not oElement.scope Is Nothing Then
       strRem = "scope:" + printName(oElement.scope)
    End If

Visual Basic Syntax

Set oScope = oISchemaAttribute.scope  

Parameters

None.

Return Values

oScope
An object. A <complexType>declaration of the element being queried.

C/C++ 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.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaElement Interface

See Also

ISchemaComplexType Interface