RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

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.

Namespace:  RingSoft.DbMaintenance
Assembly:  RingSoft.DbMaintenance (in RingSoft.DbMaintenance.dll)

Syntax


[AttributeUsageAttribute]
[BaseTypeRequiredAttribute]
public sealed class BaseTypeRequiredAttribute : Attribute
<AttributeUsageAttribute> _
<BaseTypeRequiredAttribute> _
Public NotInheritable Class BaseTypeRequiredAttribute _
	Inherits Attribute
[AttributeUsageAttribute]
[BaseTypeRequiredAttribute]
public ref class BaseTypeRequiredAttribute sealed : public Attribute

Examples


C#
[BaseTypeRequired(typeof(IComponent)] // Specify requirement
class ComponentAttribute : Attribute { }
[Component] // ComponentAttribute requires implementing IComponent interface
class MyComponent : IComponent { }

Inheritance Hierarchy


Object
  Attribute
    RingSoft.DbMaintenance..::..BaseTypeRequiredAttribute