Share via


CosmosPropertyExtensions.GetVectorDistanceFunction(IReadOnlyProperty) Method

Definition

Returns the distance function of the vector stored in this property.

public static Microsoft.Azure.Cosmos.DistanceFunction? GetVectorDistanceFunction(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
static member GetVectorDistanceFunction : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Nullable<Microsoft.Azure.Cosmos.DistanceFunction>
<Extension()>
Public Function GetVectorDistanceFunction (property As IReadOnlyProperty) As Nullable(Of DistanceFunction)

Parameters

property
IReadOnlyProperty

The property.

Returns

Returns the distance function of the vector stored in this property.

Applies to