Click or drag to resize
BaseTypeRequiredAttribute Class
When applied to a target attribute, specifies a requirement for any type marked with the target attribute to implement or inherit specific type or types.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Hangfire.AnnotationsBaseTypeRequiredAttribute

Namespace: Hangfire.Annotations
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
[BaseTypeRequiredAttribute(typeof(Attribute))]
public sealed class BaseTypeRequiredAttribute : Attribute

The BaseTypeRequiredAttribute type exposes the following members.

Constructors
  NameDescription
Public methodBaseTypeRequiredAttribute
Initializes a new instance of the BaseTypeRequiredAttribute class
Top
Properties
  NameDescription
Public propertyBaseType
Top
Examples
[BaseTypeRequired(typeof(IComponent)] // Specify requirement
public class ComponentAttribute : Attribute { }
[Component] // ComponentAttribute requires implementing IComponent interface
public class MyComponent : IComponent { }
See Also