CodeStatement 類別

定義

代表 abstract 所有程式碼陳述式所衍生的基底類別。

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

備註

CodeStatement 提供命名空間內 System.CodeDom 程式碼語句的抽象基底類別。

建構函式

名稱 Description
CodeStatement()

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

屬性

名稱 Description
EndDirectives

會得到 CodeDirectiveCollection 包含終端指令的物件。

LinePragma

取得或設定該代碼語句出現的行。

StartDirectives

會得到 CodeDirectiveCollection 一個包含啟動指令的物件。

UserData

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

(繼承來源 CodeObject)

方法

名稱 Description
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱