Skip to main content

ExtendsAttribute

Namespace: Wisej.AI

Assembly: Wisej.AI

Represents an attribute that specifies the type a SmartAdapter extends, allowing for multiple extensions if specified.

public class ExtendsAttribute : Attribute

This attribute can be applied to SmartAdapter classes to indicate that they extend a particular type. It supports specifying the type either by a Type object or by a type name string.

Constructors​

ExtendsAttribute(type, allowMultiple)​

Initializes a new instance of the ExtendsAttribute class with the specified type.

NameTypeDescription
typeTypeThe type that the class extends.
allowMultipleBooleanIndicates whether multiple extensions are allowed. Default is false.

Throws:

ExtendsAttribute(typeName, allowMultiple)​

Initializes a new instance of the ExtendsAttribute class with the specified type name.

NameTypeDescription
typeNameStringThe name of the type that the class extends.
allowMultipleBooleanIndicates whether multiple extensions are allowed. Default is false.

Throws:

Properties​

AllowMultiple​

Boolean: Gets a value indicating whether the adapter can extend multiple controls.

Type​

Type: Gets the Type object that the class extends.

If the type was specified by name, this property attempts to resolve it to a Type object.

TypeName​

String: Gets the name of the type that the adapter can extend.