DynamicPropertyAttribute

Namespace: Digi21.DigiNG.Plugin.Databases
Assembly: Digi21.DigiNG.Plugin

Marks a class as a dynamic property provider and specifies the property name. The class must implement IDynamicProperty and have a public parameterless constructor.

public class DynamicPropertyAttribute : Attribute

Write the name without % signs: a class with [DynamicProperty("NUMERO_VERTICES")] calculates fields whose default value is %NUMERO_VERTICES% or %NUMERO_VERTICES% parámetro. Digi3D.AI treats the name as case-sensitive. The IDynamicProperty page explains how to register the extension and when the value is calculated.

Constructors

public DynamicPropertyAttribute()
public DynamicPropertyAttribute(string dynamicProperty)

The parameterized constructor assigns dynamicProperty to DynamicProperty. The parameterless constructor leaves DynamicProperty as null; in that case, assign the property using [DynamicProperty(DynamicProperty = "NOMBRE")]. If DynamicProperty is null, Digi3D.AI does not register that class or subsequent classes in the same DLL.

Properties

Property Description
string DynamicProperty { get; set; } Dynamic property name, without % signs.

Example

The IDynamicProperty example registers the NUMERO_VERTICES property through [DynamicProperty("NUMERO_VERTICES")].