Dela via


FacetResult.AsValueFacetResult<T> Method

Definition

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

public Azure.Search.Documents.Models.ValueFacetResult<T> AsValueFacetResult<T> ();
member this.AsValueFacetResult : unit -> Azure.Search.Documents.Models.ValueFacetResult<'T>
Public Function AsValueFacetResult(Of T) () As ValueFacetResult(Of T)

Type Parameters

T

A type that matches the type of the field to which the facet was applied.

Returns

A new strongly-typed value facet instance.

Exceptions

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

Applies to