name Property
Returns a name for the schema item in the form of a string. The name is the schema attribute name in the declaration of the item.
Example
The following is an example of the name
attribute, used in an XML Schema.
<schema>
<element name
="title"/>
</schema>
[Script]
Implementation Syntax
var strName = oISchemaItem.name;
Parameters
None.
Return Values
- strName
- A string. The
name
attribute of the schema item.
[Visual Basic]
Implementation Syntax
strName = oISchemaItem.name
Parameters
None.
Return Values
- strName
- A string. The
name
attribute of the schema item.
[C/C++]
Implementation Syntax
HRESULT get_name(BSTR* name);
Parameters
- name [out,retval]
- A string. The
name
attribute of the schema item.
Return Values
- S_OK
- The value returned if successful.
- E_POINTER
- The value returned if the
name
parameter returns 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 in the upper-left corner of the page.
See Also
Declaring Attributes | Declaring Elements
Applies to: ISchemaItem Interface