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) _

適用於