RequiresInterfaceAttribute

Overview

Apply the RequiresInterfaceAttribute to an aspect to let the compiler know the target class should implement the specified type.

Location

Properties


Type

Type that must be implemented by the target class

 

property Type: Type read;

 

Type Type { get; }

 

var Type: Type { get{} }

 

Type Type { __get; }

 

ReadOnly Property Type() As Type

Instance Methods


constructor

Constructor for this attribute

 

constructor(aType: Type)

 

RequiresInterfaceAttribute(Type aType)

 

init(_ aType: Type)

 

RequiresInterfaceAttribute(Type aType)

 

Sub New(aType As Type)

Parameters:

  • aType: Required interface