StringArgumentAttribute Class

graph BT Type-->Base0["BaseStringAttribute"] click Base0 "/api/Cake.ArgumentBinder/BaseStringAttribute" Base0-->Base1["BaseAttribute"] click Base1 "/api/Cake.ArgumentBinder/BaseAttribute" Base1-->Base2["Attribute"] Type-.->Interface0["IReadOnlyArgumentAttribute"] click Interface0 "/api/Cake.ArgumentBinder/IReadOnlyArgumentAttribute" Type["StringArgumentAttribute"] class Type type-node

Syntax

public class StringArgumentAttribute : BaseStringAttribute, IReadOnlyArgumentAttribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Properties

Name Value Summary
ArgName string
Inherited from BaseAttribute
BaseDefaultValue object
Inherited from BaseStringAttribute
BaseType Type
Inherited from BaseStringAttribute
DefaultValue string
Inherited from BaseStringAttribute
Description string
Inherited from BaseAttribute
HasSecretValue bool
Inherited from BaseAttribute
Required bool
Inherited from BaseAttribute

Methods

Name Value Summary
ToString() string
Inherited from BaseStringAttribute
ToString(StringBuilder) void
Inherited from BaseAttribute

Extension Methods

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