DiscoveryModelFactory.DiscoveryCitation Method

Definition

A citation for a generated result.

public static Azure.AI.Discovery.DiscoveryCitation DiscoveryCitation(Azure.AI.Discovery.CitationType type = default, int? index = default, string fileName = default, int? startOffset = default, int? endOffset = default);
static member DiscoveryCitation : Azure.AI.Discovery.CitationType * Nullable<int> * string * Nullable<int> * Nullable<int> -> Azure.AI.Discovery.DiscoveryCitation
Public Shared Function DiscoveryCitation (Optional type As CitationType = Nothing, Optional index As Nullable(Of Integer) = Nothing, Optional fileName As String = Nothing, Optional startOffset As Nullable(Of Integer) = Nothing, Optional endOffset As Nullable(Of Integer) = Nothing) As DiscoveryCitation

Parameters

type
CitationType

The type of citation.

index
Nullable<Int32>

Zero-based index of the citation in the result.

fileName
String

The source file name.

startOffset
Nullable<Int32>

Character offset where the cited passage begins.

endOffset
Nullable<Int32>

Character offset where the cited passage ends.

Returns

A new DiscoveryCitation instance for mocking.

Applies to