Export (0) Print
Expand All

relatedProperty

New for Windows 7. Identifies a property that is related to the property defined in the property description file. There can be as many relatedProperty elements within a relatedPropertyInfo as needed.

Syntax


<!-- relatedPropertyInfo -->
<xs:element name="relatedProperty" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
        <xs:attribute name="relationshipName" type="canonical-name" use="required"/>
        <xs:attribute name="propertyName" type="canonical-name" use="required"/>
    </xs:complexType>
</xs:element>

Element Information

Parent ElementChild Elements
relatedPropertyInfo None

 

Attributes

AttributeDescription
relationshipNamePublic. Required. The canonical name of the property relationship.
propertyNamePublic. Required. The canonical name of the related property.

 

Remarks

This element enables you to map one property to another. For example, you can map the text of your custom property, Fabrikam.StorageCapacity, to System.Capacity:


<!-- relatedPropertyInfo -->
<propertyDescription name="Fabrikam.StorageCapacity" ... >
    ...
    <relatedPropertyInfo>
        <relatedProperty relationshipName="System.RelatedProperty.Text" propertyName="System.Capacity"/>
    </relatedPropertyInfo>
</propertyDescription>

 

 

Community Additions

ADD
Show:
© 2014 Microsoft