ConditionalAvailability (attribute): Difference between revisions
From MXMS Wiki
Jump to navigationJump to search
Created page with "The ConditionalAvailability attribute is used to show a property only when it's attribute condition is met." |
No edit summary |
||
| Line 1: | Line 1: | ||
The ConditionalAvailability attribute is used to show a property only when it's attribute condition is met. | The ConditionalAvailability attribute is used to show a property only when it's attribute condition is met. | ||
== Example == | |||
<pre> | |||
public virtual bool Enabled | |||
{ | |||
get; set; | |||
} | |||
[ConditionalAvailability("Enabled", ConditionalAvailabilityMode.Equals, true)] | |||
public virtual string ConditionalProperty | |||
{ | |||
get; set; | |||
} | |||
</pre> | |||
Revision as of 05:23, 3 April 2026
The ConditionalAvailability attribute is used to show a property only when it's attribute condition is met.
Example
public virtual bool Enabled
{
get; set;
}
[ConditionalAvailability("Enabled", ConditionalAvailabilityMode.Equals, true)]
public virtual string ConditionalProperty
{
get; set;
}