Description
The Value
property of the IconAttribute
class specifies the icon associated with a type or a type member. This property holds the string representation of the icon, which can be a path to an icon file or a symbolic name that the system recognizes.
Usage
To use the Value
property, apply the IconAttribute
to a class or member and set the Value
property to the desired icon identifier. This identifier can be a file path or a symbolic name that the system can interpret as an icon.
Example
[Icon("icon-path-or-name")]
public class MyClass
{
// Class implementation
}