Show / Hide Table of Contents

Class BehaviorForAttribute

Describes a behavior that is created to work for a specified entity type. This attribute is used to specify for which entity the behavior is created.

Inheritance
object
Attribute
BehaviorForAttribute
Inherited Members
Attribute.Equals(object)
Attribute.GetCustomAttribute(Assembly, Type)
Attribute.GetCustomAttribute(Assembly, Type, bool)
Attribute.GetCustomAttribute(MemberInfo, Type)
Attribute.GetCustomAttribute(MemberInfo, Type, bool)
Attribute.GetCustomAttribute(Module, Type)
Attribute.GetCustomAttribute(Module, Type, bool)
Attribute.GetCustomAttribute(ParameterInfo, Type)
Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
Attribute.GetCustomAttributes(Assembly)
Attribute.GetCustomAttributes(Assembly, bool)
Attribute.GetCustomAttributes(Assembly, Type)
Attribute.GetCustomAttributes(Assembly, Type, bool)
Attribute.GetCustomAttributes(MemberInfo)
Attribute.GetCustomAttributes(MemberInfo, bool)
Attribute.GetCustomAttributes(MemberInfo, Type)
Attribute.GetCustomAttributes(MemberInfo, Type, bool)
Attribute.GetCustomAttributes(Module)
Attribute.GetCustomAttributes(Module, bool)
Attribute.GetCustomAttributes(Module, Type)
Attribute.GetCustomAttributes(Module, Type, bool)
Attribute.GetCustomAttributes(ParameterInfo)
Attribute.GetCustomAttributes(ParameterInfo, bool)
Attribute.GetCustomAttributes(ParameterInfo, Type)
Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
Attribute.GetHashCode()
Attribute.IsDefaultAttribute()
Attribute.IsDefined(Assembly, Type)
Attribute.IsDefined(Assembly, Type, bool)
Attribute.IsDefined(MemberInfo, Type)
Attribute.IsDefined(MemberInfo, Type, bool)
Attribute.IsDefined(Module, Type)
Attribute.IsDefined(Module, Type, bool)
Attribute.IsDefined(ParameterInfo, Type)
Attribute.IsDefined(ParameterInfo, Type, bool)
Attribute.Match(object)
Attribute.TypeId
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public class BehaviorForAttribute : Attribute

Constructors

BehaviorForAttribute(Type)

Initializes a new instance of the BehaviorForAttribute class.

Declaration
public BehaviorForAttribute(Type entityType)
Parameters
Type Name Description
Type entityType

Type of the entity that the behavior is meant for.

BehaviorForAttribute(Type, Type[])

Initializes a new instance of the BehaviorForAttribute class.

Declaration
public BehaviorForAttribute(Type entityType, Type[] genericTypeArguments)
Parameters
Type Name Description
Type entityType

Type of the entity that the behavior is meant for.

Type[] genericTypeArguments

The generic type arguments if needed.

Properties

EntityType

Gets the entity type that the behavior implementation is targeting.

Declaration
public Type EntityType { get; }
Property Value
Type Description
Type

The type of the entity.

GenericTypeArguments

Gets the generic type arguments that should apply for this behavior when used for the specified entity.

Declaration
public Type[] GenericTypeArguments { get; }
Property Value
Type Description
Type[]

The generic type arguments.

Extension Methods

Utility.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX