scope Property
[This feature was first 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 NULL for the scope
property. This property is absent in the case of declarations within named model groups.
JScript Syntax
var oScope = oISchemaAttribute.scope;
Parameters
None.
Return Values
oScope
An object. A <complexType>
declaration of the attribute being queried.
Visual Basic Syntax
Set oScope = oISchemaAttribute.scope
Parameters
None.
Return Values
oScope
An object. A <complexType>
declaration of the attribute 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 ISchemaAttribute
object.
If Not oAttr.scope Is Nothing Then
strRem = "scope:" + printName(oAttr.scope)
End If
C/C++ 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.
Note
Globally declared elements will return a NULL value for this property.
Versioning
Implemented in: MSXML 6.0