DerivedTypeConstraintAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |