Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Represents a reference to a type that is used in the declaration of an attribute or event. The type cannot be an array.
<Type>
<ExternalTypeReference>...</ExternalTypeReference>
<TypeReference>...</TypeReference>
</Type>
TypeReference_Type
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element |
Description |
---|---|
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. |
|
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 |
---|---|
Represents an attribute of a type, member, or parameter. |
|
Represents an event that is defined in a proxy type for a COM type. |
|
Represents an event that is defined in a proxy type for a managed type. |
Example
The following example demonstrates a Type element that represents 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 |
No |