Class EditingComponentPropertyAttribute
Attribute specifying form component property's value. The attribute is to be used in conjunction with EditingComponentAttribute to further configure an assigned component.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
public class EditingComponentPropertyAttribute : Attribute
- Inheritance
-
objectAttributeEditingComponentPropertyAttribute
- Extension Methods
Constructors
EditingComponentPropertyAttribute(string, object)
Initializes a new instance of the EditingComponentPropertyAttribute class.
public EditingComponentPropertyAttribute(string propertyName, object propertyValue)
Parameters
propertyNamestringName of the property within corresponding Properties.
propertyValueobjectDefines the value of the property.
Exceptions
- ArgumentNullException
Thrown when
propertyNameis null.
Properties
PropertyName
Name of the property whose value is being configured. The name must be a valid property name within corresponding Properties.
public string PropertyName { get; }
Property Value
- string
- See Also
PropertyValue
The value of the property this attribute was initialized with. The actual value assigned to the property is obtained via the GetPropertyValue() method which can further process the value.
public object PropertyValue { get; }
Property Value
- object
Methods
GetPropertyValue()
Returns the value of the property to be assigned to the editing component.
public virtual object GetPropertyValue()
Returns
- object