Skip to content

Commit

Permalink
docs: Document the xref nameWithType option (#10368)
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott authored Nov 7, 2024
1 parent fefd1db commit cd82ac1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/links-and-cross-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ You can create a cross link with following options:
- `displayProperty`: the property of display text when the cross reference is has resolved correctly.

e.g.: `<a href="xref:System.String?displayProperty=fullName"/>` will be resolved as <a href="xref:System.String?displayProperty=fullName"/>.

e.g.: `<a href="xref:System.String.Length?displayProperty=nameWithType"/>` will be resolved as <a href="xref:System.String.Length?displayProperty=nameWithType"/>.
- `altProperty`: the property of display text when the cross reference does not have a `href` property.

e.g.: ``<xref href="System.Collections.Immutable.ImmutableArray`1" altProperty="name"/>`` will be resolved as <xref href="System.Collections.Immutable.ImmutableArray`1" altProperty="name"/>.
Expand Down

0 comments on commit cd82ac1

Please sign in to comment.