MapVariableDescriptorPreview.IsRequired 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
已弃用。 如果为 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 命名空间。