SmartAdapter.ExtendsAttribute

Wisej.AI.SmartAdapter ExtendsAttribute

Namespace: Wisej.AI

Assembly: Wisej.AI (3.5.0.0)

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.

Name
Type
Description

type

The type that the class extends.

allowMultiple

Indicates 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.

Name
Type
Description

typeName

The name of the type that the class extends.

allowMultiple

Indicates 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.

Last updated