Facet.AsValueFacet<T> Method ()
Applies To: Microsoft Azure
Attempts to convert the facet to a value facet of the given type.
Namespace: Microsoft.Azure.Search.Models
Assembly: Microsoft.Azure.Search (in Microsoft.Azure.Search.dll)
Syntax
public ValueFacet<T> AsValueFacet<T>()
public:
generic<typename T>
ValueFacet<T>^ AsValueFacet()
member AsValueFacet<'T> : unit -> ValueFacet<'T>
Public Function AsValueFacet(Of T) As ValueFacet(Of T)
Return Value
Type: Microsoft.Azure.Search.Models.ValueFacet<T>
A new strongly-typed value facet instance.
Type Parameters
- T
A type that matches the type of the field to which the facet was applied.
Exceptions
| Exception | Condition |
|---|---|
| InvalidCastException | This instance is not a value facet of the given type. |
See Also
Facet Class
Microsoft.Azure.Search.Models Namespace
Return to top