TaskArgument Class

Summary

A means of obtaining the Task Argument Value from the CLI arguments, the cake.config file, and the environment variables.
graph BT Type-->Base0["Object"] Type["TaskArgument"] class Type type-node

Syntax

public class TaskArgument

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Properties

Name Value Summary
Name string
Gets the Name of the Task Argument.
Property PropertyInfo
Gets the System.Reflection.PropertyInfo for the Task Argument
Type Type
Gets the Property Type of the Task Argument

Methods

Name Value Summary
GetValue() string
Gets the value as a single nullable string.
GetValues() IList<string>
Gets the value as a list of strings.

Extension Methods

Name Value Summary
Dump<TaskArgument>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<TaskArgument>(TaskArgument[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<TaskArgument>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<TaskArgument>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<TaskArgument>(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
ThrowIfNull<TaskArgument>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin