Share via


TermProperty.Property property

Gets or sets which property of the Term should be rendered.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebDescriptionAttribute("Property of the term to render (e.g. Name, Description, Path, ID or a custom property).")> _
<WebBrowsableAttribute> _
<WebDisplayNameAttribute("Render Property")> _
Public Property Property As String
    Get
    Set
'Usage
Dim instance As TermProperty
Dim value As String

value = instance.Property

instance.Property = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebDescriptionAttribute("Property of the term to render (e.g. Name, Description, Path, ID or a custom property).")]
[WebBrowsableAttribute]
[WebDisplayNameAttribute("Render Property")]
public string Property { get; set; }

Property value

Type: System.String

Remarks

Valid values are:

  • Name

  • Description

  • Path

  • ID

  • CustomProperty:{Key}, where {Key} is the key of a custom property defined on the Term

A custom property with key "_Sys_Nav_CategoryImageUrl" is treated uniquely and will always be rendered using a simple HTML img tag with no additional attributes. No other custom property keys are treated in this special way.

This property must be specified in order for the Web Part to render a value on the page.

See also

Reference

TermProperty class

TermProperty members

Microsoft.SharePoint.Taxonomy namespace