This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.ArgumentBinder.
- Assembly
- Cake
.ArgumentBinder .dll - Namespace
- Cake
.ArgumentBinder - Interfaces
- Base Types
-
- Attribute
- Derived Types
graph BT
Type-->Base0["Attribute"]
Type-.->Interface0["IReadOnlyArgumentAttribute"]
click Interface0 "/api/Cake.ArgumentBinder/IReadOnlyArgumentAttribute"
Type["BaseAttribute"]
class Type type-node
Derived0["EnumArgumentAttribute"]-->Type
click Derived0 "/api/Cake.ArgumentBinder/EnumArgumentAttribute"
Derived1["StringArgumentAttribute"]-->Type
click Derived1 "/api/Cake.ArgumentBinder/StringArgumentAttribute"
Derived2["BooleanArgumentAttribute"]-->Type
click Derived2 "/api/Cake.ArgumentBinder/BooleanArgumentAttribute"
Derived3["IntegerArgumentAttribute"]-->Type
click Derived3 "/api/Cake.ArgumentBinder/IntegerArgumentAttribute"
Derived4["BasePathAttribute"]-->Type
click Derived4 "/api/Cake.ArgumentBinder/BasePathAttribute"
Syntax
public abstract class BaseAttribute : Attribute, IReadOnlyArgumentAttribute
Attributes
Type | Description |
---|---|
Attribute |
Constructors
Name | Summary |
---|---|
BaseAttribute |
Properties
Name | Value | Summary |
---|---|---|
ArgName | string |
The name of the argument that is passed in via the command-line.
|
ArgumentSource | ArgumentSource |
Where to find the argument's value.
|
BaseDefaultValue | object |
The default value if an argument isn't specified.
|
Default |
ArgumentSource |
static
|
Description | string |
Description of what the argument does.
|
HasSecretValue | bool |
Set to true if the value passed into the argument
should be hidden from any print-outs to the console.
|
Required | bool |
If the value is not specified, this will fail validation when this is set to true.
|
Methods
Name | Value | Summary |
---|---|---|
ToString |
void |
Appends this class's string representation to the passed
in string builder object.
This should be the first thing called when creating a ToString()
function of all child classes.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|