ImageVariableDescriptorPreview.Description ImageVariableDescriptorPreview.Description ImageVariableDescriptorPreview.Description ImageVariableDescriptorPreview.Description ImageVariableDescriptorPreview.Description Property

Definition

Deprecated. Gets the description of the image variable.

public : Platform::String Description { get; }
winrt::hstring Description();
public string Description { get; }
Public ReadOnly Property Description As string
var string = imageVariableDescriptorPreview.description;

Property Value

string string string

The description of the image variable.

Examples

public void Evaluator(LearningModelPreview model)
{
	// Retrieve the first input feature which is an image
    ILearningModelVariableDescriptorPreview inputImageFeatureDescription = model.Description.InputFeatures.FirstOrDefault(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image);
 
    ImageVariableDescriptorPreview imageDescriptor = (ImageVariableDescriptorPreview)inputImageFeatureDescription;

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

 }

Remarks

Warning

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