Share via


SchemaElement Property

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

A string identifier containing the name of a property associated with a Web Part.

objProperty.SchemaElement

Parameters

Parameter

Description

objProperty

A reference to a Property Object.

Remarks

Together with the NamespaceURN Property, this property is used to identify a Property Object. Specifically, it is the name of a Web Part or Web Part Page schema element or the name of a custom property that you define. When you use the Item property to get or set a member in the Properties Collection, it is the value that comes after the hash character (#). For example, in the following statement, the value of the SchemaElement property would be CustomerName:

strName = objPart_WPQ_.Properties.Item
   ("urn:myCompany:CustInfo#CustomerName").SchemaElement

Example 1: Microsoft Visual Basic Scripting Edition

Code

strSchemaElement = varPart_WPQ_.Properties.Item(0).SchemaElement

Example 2: Microsoft JScript

Code

var strSchemaElement = varPart_WPQ_.Properties.Item(0).SchemaElement;

Requirements

Applies to: Property Object

See Also

Reference

Item Property

NamespaceURN Property

Properties Collection

Other Resources

Web Part Page Services Component (WPSC) Object Model