Share via


PropertyInformation.DefaultValue 属性

定义

获取一个对象,该对象包含与配置特性相关的默认值。

public:
 property System::Object ^ DefaultValue { System::Object ^ get(); };
public object DefaultValue { get; }
member this.DefaultValue : obj
Public ReadOnly Property DefaultValue As Object

属性值

一个对象,包含配置特性的默认值。

示例

下面的代码示例演示如何使用 DefaultValue 属性。 此代码示例是为 PropertyInformation 类提供的一个更大示例的一部分。

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

适用于