共用方式為


TextAnalysisModelFactory.TemperatureMetadata(Double, TemperatureUnit) Method

Definition

Initializes a new instance of TemperatureMetadata.

public static Azure.AI.Language.Text.TemperatureMetadata TemperatureMetadata (double value = 0, Azure.AI.Language.Text.TemperatureUnit unit = default);
static member TemperatureMetadata : double * Azure.AI.Language.Text.TemperatureUnit -> Azure.AI.Language.Text.TemperatureMetadata
Public Shared Function TemperatureMetadata (Optional value As Double = 0, Optional unit As TemperatureUnit = Nothing) As TemperatureMetadata

Parameters

value
Double

The numeric value that the extracted text denotes.

unit
TemperatureUnit

Unit of measure for temperature.

Returns

A new TemperatureMetadata instance for mocking.

Applies to