Specifies the default value for a property.
Object
Attribute
MemberAttribute
DefaultValueAttribute
[Visual Basic] Public Class DefaultValueAttribute Inherits MemberAttribute [C#] public class DefaultValueAttribute : MemberAttribute [C++] public __gc class DefaultValueAttribute : public MemberAttribute [JScript] public class DefaultValueAttribute extends MemberAttribute
You can create a DefaultValueAttribute with any value. A member's default value is typically its initial value. A visual designer can use the default value to reset the member's value. Default values also can be used by a code generator to determine whether code should be generated for the member.
For more information, see TBD and TBD.
Namespace: System.ComponentModel
Assembly: System.dll
System.ComponentModel Namespace | MemberAttribute | PropertyDescriptor