CakePropertyAliasAttribute Class

Summary

An attribute used to mark script property aliases.
Namespace
Cake.Core.Annotations
Base Types
graph BT Type-->Base0["CakeAliasAttribute"] click Base0 "/api/Cake.Core.Annotations/CakeAliasAttribute" Base0-->Base1["Attribute"] Base1-->Base2["object"] Type["CakePropertyAliasAttribute"] class Type type-node

Syntax

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class CakePropertyAliasAttribute : CakeAliasAttribute

Attributes

Type Description
AttributeUsageAttribute

Properties

Name Value Summary
Cache bool
Gets or sets a value indicating whether the result of the property alias method should be cached. Indicates .

Extension Methods

Name Value Summary
Dump<CakePropertyAliasAttribute>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<CakePropertyAliasAttribute>(CakePropertyAliasAttribute[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<CakePropertyAliasAttribute>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<CakePropertyAliasAttribute>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<CakePropertyAliasAttribute>(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<CakePropertyAliasAttribute>(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
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin