示例#1
0
 /// <summary>
 /// Initializes a new instance of the AvailableFeature class.
 /// </summary>
 /// <param name="name">The feature name</param>
 /// <param name="state">The feature state. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 /// <param name="extendedState">The feature extended state. Possible
 /// values include: 'Enabled', 'DisabledByAdmin',
 /// 'UserNotLicensed'</param>
 /// <param name="additionalInfo">Additional feature information</param>
 public AvailableFeature(string name, FeatureState state, FeatureExtendedState extendedState, AdditionalFeatureInfo additionalInfo = default(AdditionalFeatureInfo))
 {
     Name           = name;
     State          = state;
     ExtendedState  = extendedState;
     AdditionalInfo = additionalInfo;
     CustomInit();
 }
示例#2
0
        internal static string ToSerializedValue(this FeatureState value)
        {
            switch (value)
            {
            case FeatureState.Enabled:
                return("Enabled");

            case FeatureState.Disabled:
                return("Disabled");
            }
            return(null);
        }