PropertyInformation.DefaultValue Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an object containing the default value related to a configuration attribute.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public object DefaultValue { get; }

Property Value

Type: System.Object

An object containing the default value of the configuration attribute.

The following code example demonstrates how to use the DefaultValue property. This code example is part of a larger example provided for the PropertyInformation class.

// Display the DefaultValue property.
Console.WriteLine("DefaultValue: {0}", 
  propertyItem.DefaultValue);

.NET Framework
Available since 2.0
Return to top
Show: