Condividi tramite


DynamicValuesAttribute Class

Definition

add this attribute to a property where you would like the values to be a dynamic list. The class that has a property with this attribute set must implement the IDynamicValues interface as the GetStandardValues mothod on that interface will be called to retrieve the valid values.

If the attribute is present but not the interface no list will be returned so it will usually result in an empty drop down list being shown.

[System.AttributeUsage(System.AttributeTargets.Property)]
public class DynamicValuesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type DynamicValuesAttribute = class
    inherit Attribute
Public Class DynamicValuesAttribute
Inherits Attribute
Inheritance
DynamicValuesAttribute
Attributes

Constructors

DynamicValuesAttribute(Boolean)

Used to enable or disable dynamic values. Passing false in the constructor can be helpful in debugging without removing the attribute

Properties

Enabled

Applies to