DebuggerVisualizerAttribute 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定型別要具有視覺化檢視。 此類別無法獲得繼承。
public ref class DebuggerVisualizerAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=true)]
public sealed class DebuggerVisualizerAttribute : Attribute
public sealed class DebuggerVisualizerAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=true)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class DebuggerVisualizerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=true)>]
type DebuggerVisualizerAttribute = class
inherit Attribute
type DebuggerVisualizerAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=true)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type DebuggerVisualizerAttribute = class
inherit Attribute
Public NotInheritable Class DebuggerVisualizerAttribute
Inherits Attribute
- 繼承
- 屬性
這個屬性可以在元件層級使用。 屬性建構函式通常會採用兩種類型。 這兩種類型是可視化檢視和可視化檢視物件來源,指定為類型或完整元件類型名稱。 提供第二個選項,讓包含 DebuggerVisualizerAttribute的元件不需要參考可視化檢視元件。 這可讓元件建立者只在偵錯時間將可視化檢視寄送到 DLL 中。 屬性 Description 會指定顯示在下拉式方塊中的可視化檢視描述。 目標參數會指定可視化檢視目標的類型。 如需可視化檢視的詳細資訊,請參閱 Create 自定義數據可視化檢視。
注意
可視化檢視和可視化檢視物件來源實作取決於裝載調試程式。 如需建立Visual Studio 2005可視化檢視的詳細資訊,請參閱 如何:撰寫可視化檢視。
Debugger |
指定視覺化檢視的型別名稱來初始化 DebuggerVisualizerAttribute 類別的新執行個體。 |
Debugger |
指定視覺化檢視的型別名稱和視覺化檢視物件來源的型別名稱,來初始化 DebuggerVisualizerAttribute 類別的新執行個體。 |
Debugger |
指定視覺化檢視的型別名稱和視覺化檢視物件來源的型別,來初始化 DebuggerVisualizerAttribute 類別的新執行個體。 |
Debugger |
將 DebuggerVisualizerAttribute 類別的新執行個體初始化,以便指定視覺化檢視的類別。 |
Debugger |
將 DebuggerVisualizerAttribute 類別的一個新執行個體初始化,指定視覺化檢視的類型以及視覺化檢視物件來源的類型名稱。 |
Debugger |
將 DebuggerVisualizerAttribute 類別一個新的執行個體初始化,指定視覺化檢視的類型以及視覺化檢視物件來源的類型名稱。 |
Description |
取得或設定視覺化檢視的描述。 |
Target |
在組件層級套用屬性時,取得或設定目標型別。 |
Target |
在組件層級套用屬性時,取得或設定完整型別名稱。 |
Type |
在衍生類別中實作時,取得這個 Attribute 的唯一識別碼。 (繼承來源 Attribute) |
Visualizer |
取得視覺化檢視物件來源的完整型別名稱。 |
Visualizer |
取得視覺化檢視的完整型別名稱。 |
Equals(Object) |
傳回值,這個值指出此執行個體是否與指定的物件相等。 (繼承來源 Attribute) |
Get |
傳回這個執行個體的雜湊碼。 (繼承來源 Attribute) |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Is |
在衍生類別中覆寫時,表示這個執行個體的值是衍生類別的預設值。 (繼承來源 Attribute) |
Match(Object) |
在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。 (繼承來源 Attribute) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
To |
傳回代表目前物件的字串。 (繼承來源 Object) |
_Attribute. |
將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 (繼承來源 Attribute) |
_Attribute. |
擷取物件的類型資訊,可以用來取得介面的類型資訊。 (繼承來源 Attribute) |
_Attribute. |
擷取物件提供的類型資訊介面數目 (0 或 1)。 (繼承來源 Attribute) |
_Attribute. |
提供物件所公開的屬性和方法的存取權。 (繼承來源 Attribute) |
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |