NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DefaultValueAttribute Class

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

Remarks

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.

Requirements

Namespace: System.ComponentModel

Assembly: System.dll

See Also

System.ComponentModel Namespace | MemberAttribute | PropertyDescriptor