UndefinedReferenceLinks

The UndefinedReferenceLinks() method returns every reference link that doesn’t have a matching reference link definition from the document.

Overloads

UndefinedReferenceLinks()
Returns every reference link that doesn’t have a matching reference link definition from the document.

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:

  1. Have a Kind of TextSelfReference, TextUsingReference, ImageSelfReference, or ImageUsingReference
  2. Don’t have their Text (if Kind is TextSelfReference or ImageSelfReference) or ReferenceID (if Kind is TextUsingReference or ImageUsingReference) match the ReferenceID of another link in the document whose Kind is ReferenceDefinition.

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()