CodeDirective 類別

定義

作為程式碼指令類別的基底類別。

public ref class CodeDirective : System::CodeDom::CodeObject
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public class CodeDirective : System.CodeDom.CodeObject
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type CodeDirective = class
    inherit CodeObject
Public Class CodeDirective
Inherits CodeObject
繼承
CodeDirective
衍生
屬性

備註

類別必須繼承 CodeDirective 包含於 CodeDirectiveCollection的類別。

建構函式

名稱 Description
CodeDirective()

初始化 CodeDirective 類別的新執行個體。

屬性

名稱 Description
UserData

取得目前物件的使用者可定義資料。

(繼承來源 CodeObject)

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於