語言

ProfilePropertyMetadata.DefaultValue 屬性

定義

取得或設定屬性的預設值。

public:
 property System::String ^ DefaultValue { System::String ^ get(); void set(System::String ^ value); };
[System.Runtime.Serialization.DataMember]
public string DefaultValue { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.DefaultValue : string with get, set
Public Property DefaultValue As String

屬性值

若 Web.config 檔案中有預設值,則是該屬性預設值的序列化表示;否則則為字串「(null)」。

屬性

備註

屬性的 DefaultValue 序列化格式由 SerializeAs 類別的 ProfilePropertyMetadata 屬性決定。

適用於