Jaa


DerivedTypeConstraintAttribute Class

Definition

Represents an Attribute that can be placed on a property or placed on a class to specify the derived type constraints.

[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class DerivedTypeConstraintAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type DerivedTypeConstraintAttribute = class
    inherit Attribute
Public NotInheritable Class DerivedTypeConstraintAttribute
Inherits Attribute
Inheritance
DerivedTypeConstraintAttribute
Attributes

Constructors

DerivedTypeConstraintAttribute()

Initializes a new instance of the DerivedTypeConstraintAttribute class.

DerivedTypeConstraintAttribute(Type[])

Initializes a new instance of the DerivedTypeConstraintAttribute class with the allowed types.

Properties

DerivedTypeConstraints

Set of derived type constraints

Applies to