TypeReference Element for Type for Attribute or Event (ProxyGen)
Describes a type that is defined in the proxy descriptor file. The type cannot be an array.
<TypeReference type="Fully qualified type name" />
InternalTypeReference_Type
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
---|---|
type |
Required xs:IDREF attribute. The fully qualified name of the type. |
Child Elements
None.
Parent Elements
Element |
Description |
---|---|
Represents a reference to a type that is used in the declaration of an attribute or event. |
Example
The following example demonstrates a TypeReference element that describes the type of the delegate that handles a proxy event named ColorChanged. The type of the delegate is Microsoft.VisualStudio.Tools.Applications.Samples.ShapeApp.ColorChangedEventHandler. Because the reference to this delegate is in a TypeReference element rather than an ExternalTypeReference element, this delegate must be defined elsewhere in the same proxy descriptor file.
<Event originalName="ColorChanged" isExcluded="false">
<Type>
<TypeReference type="Microsoft.VisualStudio.Tools.Applications.Samples.ShapeApp.ColorChangedEventHandler" />
</Type>
</Event>
Element Information
Namespace |
https://schemas.microsoft.com/vsta/2008/01/ProxyGenDescriptor |
Schema name |
ProxyGen Descriptor |
Validation file |
ProxyGenDescriptorv2.xsd |
Can be empty |
Not applicable |