Share via


FacetResult.AsValueFacetResult<T> Method

Definition

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

public Microsoft.Azure.Search.Models.ValueFacetResult<T> AsValueFacetResult<T> ();
member this.AsValueFacetResult : unit -> Microsoft.Azure.Search.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