Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.21 KB

mapvariabledescriptorpreview_name.md

File metadata and controls

37 lines (27 loc) · 1.21 KB
-api-id -api-type
P:Windows.AI.MachineLearning.Preview.MapVariableDescriptorPreview.Name
winrt property

Windows.AI.MachineLearning.Preview.MapVariableDescriptorPreview.Name

-description

Deprecated. Gets the name of the map variable.

-property-value

The name of the map variable. This must be unique across all variables in the model.

-remarks

Warning

This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.

-see-also

-examples

public void Evaluator(LearningModelPreview model)
{
   // Retrieve the first input feature which is a map
   ILearningModelVariableDescriptorPreview inputMapFeatureDescription = model.Description.InputFeatures.First(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Map);

   MapVariableDescriptorPreview MapDescriptor = (MapVariableDescriptorPreview)inputMapFeatureDescription;

   // Output the description of the map variable
   Console.WriteLine($"Input Feature Name: {MapDescriptor.Name}. Description: {MapDescriptor.Description}.");
}