Share via


MapVariableDescriptorPreview.IsRequired 屬性

定義

已取代。 如果為 true,您必須先將值系結至此功能,才能評估 LearningModelSession

public:
 property bool IsRequired { bool get(); };
bool IsRequired();
/// [get: Windows.Foundation.Metadata.Deprecated("Use ILearningModelFeatureDescriptor instead of ILearningModelVariableDescriptorPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
bool IsRequired();
public bool IsRequired { get; }
public bool IsRequired { [Windows.Foundation.Metadata.Deprecated("Use ILearningModelFeatureDescriptor instead of ILearningModelVariableDescriptorPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] get; }
var boolean = mapVariableDescriptorPreview.isRequired;
Public ReadOnly Property IsRequired As Boolean

屬性值

Boolean

bool

如果呼叫 LearningModelSession.Evaluate之前,您必須將值系結至此功能,則為 True;否則為 false。

實作

屬性

備註

警告

這是已被取代的 API。 請改用 Windows.AI.MachineLearning 命名空間。

適用於