UndefinedReferenceLinks
The
UndefinedReferenceLinks()
method returns every reference link that doesn’t have a matching reference link definition from the document.less than a minute
Overloads
UndefinedReferenceLinks()
- Returns every reference link that doesn’t have a matching reference link definition from the document.
UndefinedReferenceLinks()
Returns every reference link that doesn’t have a matching reference link definition from the document.
[ParsedDocument] UndefinedReferenceLinks()
Parameters
None.
Returns
The list of links from the document that meet these criteria:
- Have a Kind of
TextSelfReference
,TextUsingReference
,ImageSelfReference
, orImageUsingReference
- Don’t have their Text (if Kind is
TextSelfReference
orImageSelfReference
) or ReferenceID (if Kind isTextUsingReference
orImageUsingReference
) match the ReferenceID of another link in the document whose Kind isReferenceDefinition
.
Exceptions
None.
Examples
The following example demonstrates retrieving the list of reference links from a parsed document that don’t have a matching definition.
$Doc = Get-Document ./README.md
$Doc.UndefinedReferenceLinks()
Last modified March 3, 2023: (MAINT) Rename Source folder to Projects (8b45aed)