Share via


ExternalTypeReference Element for UnderlyingType (ProxyGen)

Describes the underlying integral type of an enumeration.

<ExternalTypeReference isInterface = "true/false"
    isMarshalByRefObject = "true/false"
    type = "Underlying integral type">
</ExternalTypeReference>

UnderlyingTypeExternalTypeReference_Type

Attributes and Elements

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

Attributes

Attribute

Description

isInterface

Optional xs:boolean attribute.

This attribute can be set only to false.

isMarshalByRefObject

Optional xs:boolean attribute.

This attribute can be set only to false.

type

Required xs:string attribute.

This attribute can have one of the following values that specifies underlying integral type of an enumeration:

  • System.SByte

  • System.Byte

  • System.Char

  • System.Int16

  • System.UInt16

  • System.Int32

  • System.UInt32

  • System.Int64

  • System.UInt64

Child Elements

None.

Parent Elements

Element

Description

UnderlyingType

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

Example

The following example demonstrates an ExternalTypeReference element that describes 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

Not applicable

See Also

Concepts

ProxyGen Descriptor Schema Reference

Creating Proxies

Defining Entry Points and Other Proxy Changes