Share via


UnderlyingType Element (ProxyGen)

Represents the underlying integral type of a proxy enumeration for a COM or managed enumeration.

<UnderlyingType>
  <ExternalTypeReference>...</ExternalTypeReference>
</UnderlyingType>

UnderlyingType_Type

Attributes and Elements

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

Attributes

None.

Child Elements

Element

Description

ExternalTypeReference

Required UnderlyingTypeExternalTypeReference_Type element.

Describes the underlying integral type of the enumeration.

Parent Elements

Element

Description

Enum

Represents a proxy enumeration for a COM or managed enumeration.

Example

The following example demonstrates an UnderlyingType element that represents the underlying integral type of a proxy enumeration named ShapeType. The underlying type is Int32.

<Enum originalFullyQualifiedName="ShapeApp.Proxy.ShapeType" 
    isExcluded="false"
    newNamespace="ShapeApp.Proxy">
  <UnderlyingType>
    <ExternalTypeReference isInterface="false" type="System.Int32" />
  </UnderlyingType>
  <EnumerationValue originalName="Circle" value="0" />
  <EnumerationValue originalName="Square" value="1" />
  <EnumerationValue originalName="Triangle" value="2" />
  <EnumerationValue originalName="Octagon" value="3" />
  <EnumerationValue originalName="Star" value="4" />
</Enum>

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