다음을 통해 공유


extends Field

Topic Last Modified: 2006-06-13

The extends field specifies the names of base content classes that a child content class extends. Use this field when you define the class. This property is a multivalued string.

Full Name

urn:schemas-microsoft-com:xml-data#extends

Variant Subtype

 Array of Variants (Strings)

 VT_ARRAY | VT_VARIANT (VT_BSTR)

OLE DB Type

DBTYPE_VECTOR | DBTYPE_VARIANT (VT_BSTR)

Remarks

A content class can extend zero or more content classes. A child class definition inherits the properties defined by the base content classes it extends. If the class definition includes additional properties, these properties are listed in the element Field.

For example, you might want to define a set of custom content classes for each type of document in an application you create. You can set the extends field so that each class inherits the properties defined by the base urn:content-classes:document content class. This way, you do not have to list the properties that are already defined by this base content class. You can add your own custom property definitions to the element Field of the child class definition as necessary.