DebuggerDisplayAttribute.Type 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定字串顯示在除錯器變數視窗的型別欄位中。
public:
property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
public string Type { get; set; }
public string? Type { get; set; }
member this.Type : string with get, set
Public Property Type As String
屬性值
字串顯示於除錯器變數視窗的型別欄位。
備註
該值可包含大括號({ 和 })。 一對大括號內的文字會被評估為欄位、屬性或方法的名稱。 你也可以在大括號中使用格式指定符來控制數值的顯示方式。 有關除錯器格式指定符的資訊,請參閱 C# 中的格式指定符。