Share via


BaseType Element (ProxyGen)

Represents a base type that another type derives from. The type cannot be an array.

<BaseType>
  <ExternalTypeReference>...</ExternalTypeReference>
  <TypeReference>...</TypeReference>
</BaseType>

TypeReference_Type

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element

Description

ExternalTypeReference

Optional ExternalTypeReference_Type element.

Describes a type that is not defined in the proxy descriptor file. You must include either an ExternalTypeReference or TypeReference element, but not both.

TypeReference

Optional InternalTypeReference_Type element.

Describes a type that is defined in the proxy descriptor file. You must include either a TypeReference or ExternalTypeReference element, but not both.

Parent Elements

Element

Description

Class Element for COMLibrary

Represents a proxy class for a COM class.

Class Element for ManagedLibrary

Represents a proxy class for a managed class.

Exception

Represents a proxy exception for a managed exception.

Interface Element for COMLibrary

Represents a proxy interface for a COM interface.

Interface Element for ManagedLibrary

Represents a proxy interface for a managed interface.

Struct

Represents a proxy struct for a managed struct.

Example

The following example demonstrates a BaseType element that is a child of a Class element. This BaseType element specifies that the ShapeAppForm class derives from the System.Windows.Forms.Form class.

<Class originalFullyQualifiedName="Microsoft.VisualStudio.Tools.Applications.Samples.ShapeApp.ShapeAppForm"
    isExcluded="true"
    isAddInEntryPoint="false">
  <BaseType>
    <ExternalTypeReference isInterface="false" isMarshalByRefObject="true" type="System.Windows.Forms.Form" />
  </BaseType>
    ...
</Class>

Element Information

Namespace

https://schemas.microsoft.com/vsta/2008/01/ProxyGenDescriptor

Schema name

ProxyGen Descriptor

Validation file

ProxyGenDescriptorv2.xsd

Can be empty

No

See Also

Concepts

ProxyGen Descriptor Schema Reference

Creating Proxies

Defining Entry Points and Other Proxy Changes