Share via


FacetResult.AsRangeFacetResult<T> Method

Definition

Attempts to convert the facet to a range facet of the given type.

public Azure.Search.Documents.Models.RangeFacetResult<T> AsRangeFacetResult<T> () where T : struct;
member this.AsRangeFacetResult : unit -> Azure.Search.Documents.Models.RangeFacetResult<'T (requires 'T : struct)> (requires 'T : struct)
Public Function AsRangeFacetResult(Of T As Structure) () As RangeFacetResult(Of T)

Type Parameters

T

A type that matches the type of the field to which the facet was applied. Valid types include DateTimeOffset, Double, and Int64.

Returns

A new strongly-typed range facet instance.

Exceptions

This instance is not a range facet of the given type.

Applies to