DynamicValuesAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |