Class DependsOnAttribute
Indicates that the property depends on the value of another property in markup.
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property, Inherited = true, AllowMultiple = true)]
public sealed class DependsOnAttribute : Attribute
- Inheritance
-
DependsOnAttribute
- Inherited Members
Constructors
DependsOnAttribute(string)
Initializes a new instance of the DependsOnAttribute class.
public DependsOnAttribute(string propertyName)
Parameters
propertyName
stringThe name of the property that this property depends on.
Properties
Name
Gets the name of the property that this property depends on.
public string Name { get; }