Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.47k stars 4.8k forks source link

ImageAnalysisSkill and read only collection #17534

Closed snapfisher closed 3 years ago

snapfisher commented 3 years ago

Query/Question For the ImageAnalysisSkill class, per Issue #11712, the VisualFeatures collection has been made read only. However, according to the ImageAnalysisSkill documentation here: https://docs.microsoft.com/en-us/azure/search/cognitive-search-skill-image-analysis This field is supposed to be used to select the feature returned. Now you can no longer select? How is this supposed to work?

Thx.

Environment: All. Azure.Search.Documents.Indexes.Models namespace

jsquire commented 3 years ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

tg-msft commented 3 years ago

You can use list initializer syntax like new ImageAnalysisSkill { VisualFeatures = { ... } } or call IList.Add on VisualFeatures to provide values.

snapfisher commented 3 years ago

Thanks.