HasReference

The HasReference() method returns whether the DocumentLink instance’s Kind is a reference link.

Overloads

HasReference()
Returns whether the DocumentLink instance’s Kind is a reference link.

HasReference()

Returns whether the DocumentLink instance’s Kind is a reference link.

[ParsedDocument] HasReference()

Parameters

None.

Returns

The method returns $true if the Kind is ImageInline, ImageSelfReference, or ImageUsingReference or $false if not.

Exceptions

None.

Examples

The following example demonstrates retrieving the list of reference links from a parsed document.

$Doc = Get-Document ./README.md
$Doc.Links | Where-Object -FilterScript { $_.HasReference() }