ExtendsAttribute
Namespace: Wisej.AI
Assembly: Wisej.AI
Represents an attribute that specifies the type a SmartAdapter extends, allowing for multiple extensions if specified.
- C#
- VB.NET
public class ExtendsAttribute : Attribute
Public Class ExtendsAttribute
Inherits 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 | Type | The type that the class extends. |
| allowMultiple | Boolean | Indicates whether multiple extensions are allowed. Default is false. |
Throws:
- ArgumentNullException
Thrown when the type is
null.
ExtendsAttribute(typeName, allowMultiple)
Initializes a new instance of the ExtendsAttribute class with the specified type name.
| Name | Type | Description |
|---|---|---|
| typeName | String | The name of the type that the class extends. |
| allowMultiple | Boolean | Indicates whether multiple extensions are allowed. Default is false. |
Throws:
- ArgumentNullException
Thrown when the typeName is
null.
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.