Get Element (ProxyGen)
Represents the get accessor of a property of a COM or managed type.
<Get isExcluded = "true/false">
<Attribute>...</Attribute>
</Get>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
---|---|
isExcluded |
Optional xs:boolean attribute. true to omit the get accessor from the proxy code; false to include the get accessor in the proxy code. |
Child Elements
Element |
Description |
---|---|
Attribute |
Optional Attribute_Type element for properties of COM types. This element is not valid for properties of managed types. Represents an attribute that is applied to the get accessor. |
Parent Elements
Element |
Description |
---|---|
Represents a property that is defined in a proxy type for a COM type. |
|
Represents a property that is defined in a proxy type for a managed type. |
Example
The following example demonstrates a Get element that represents the get accessor of a property named BackgroundColor.
<Property originalName="BackgroundColor" isExcluded="false">
<Type>
<TypeReference type="Microsoft.VisualStudio.Tools.Applications.Samples.ShapeApp.Color" />
</Type>
<Get isExcluded="false" />
<Set isExcluded="false" />
</Property>
Element Information
Namespace |
https://schemas.microsoft.com/vsta/2008/01/ProxyGenDescriptor |
Schema name |
ProxyGen Descriptor |
Validation file |
ProxyGenDescriptorv2.xsd |
Can be empty |
Yes |