ChocolateyFeatureToggler Class

Summary

The Chocolatey feature toggler used to enable/disable Chocolatey Features.
graph BT Type-->Base0["ChocolateyTool<ChocolateyFeatureSettings>"] Base0-->Base1["Tool<ChocolateyFeatureSettings>"] Base1-->Base2["object"] Type["ChocolateyFeatureToggler"] class Type type-node

Syntax

public sealed class ChocolateyFeatureToggler : ChocolateyTool<ChocolateyFeatureSettings>

Constructors

Methods

Name Value Summary
DisableFeature(string, ChocolateyFeatureSettings) void
Pins Chocolatey packages using the specified package id and settings.
EnableFeature(string, ChocolateyFeatureSettings) void
Pins Chocolatey packages using the specified package id and settings.

Extension Methods

Name Value Summary
Dump<ChocolateyFeatureToggler>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ChocolateyFeatureToggler>(ChocolateyFeatureToggler[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ChocolateyFeatureToggler>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<ChocolateyFeatureToggler>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<ChocolateyFeatureToggler>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<ChocolateyFeatureToggler>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin