CakePropertyAliasAttribute Class

Summary

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

Syntax

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

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.
IsIn<CakePropertyAliasAttribute>(CakePropertyAliasAttribute[]) bool
Checks if the source is contained in a list
NotNull<CakePropertyAliasAttribute>(string) void
Throws an exception if the specified parameter's value is null.
NotNull<CakePropertyAliasAttribute>(string) void
Throws an exception if the specified parameter's value is null.
ThrowIfNull<CakePropertyAliasAttribute>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
ThrowIfNull<CakePropertyAliasAttribute>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value