I deployed a feature creating a new feature item in Visual Studio. I'm currently using SharePoint 2013.
I'm trying to activate this feature in C# by using the feature name. I need to activate it programmatically because I need to have it on more subsites.
var features = web.Features;
If I try to use the features.Add
method I can only use a GUID but I need to activate the feature by using the name because the name is all I have.
How can I do it? There's a way?
I think I might use the features.FeatureDefinitions
method in order to get all the features but when I use it I get an empty collection everytime.