Kommentar
Å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 member of a proxy enumeration for a COM or managed enumeration.
<EnumerationValue newName = "Name of new member in proxy enumeration"
originalName = "Name of original member"
value = "Value of member">
<Attribute>...</Attribute>
</EnumerationValue>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
|---|---|
newName |
Optional identifier_Type attribute. The new name of the member in the proxy enumeration. |
originalName |
Required identifier_Type attribute. The name of the original enumeration member in the host application's object model. |
value |
Required xs:long attribute. The value of the enumeration member. |
Child Elements
Element |
Description |
|---|---|
Optional Attribute_Type element. Represents an attribute that is applied to the enumeration member. |
Parent Elements
Element |
Description |
|---|---|
Represents a proxy enumeration for a COM or managed enumeration. |
Example
The following example demonstrates several EnumerationValue elements that represent the members of a proxy enumeration named ShapeType.
<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 |
Yes |