CodeStatement 類別

定義

表示可衍生出所有程式碼陳述式 (Statement) 的 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 抽象基類。

建構函式

CodeStatement()

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

屬性

EndDirectives

取得包含結尾指示詞的 CodeDirectiveCollection 物件。

LinePragma

取得或設定程式碼陳述式發生所在的行。

StartDirectives

取得包含開頭指示詞的 CodeDirectiveCollection 物件。

UserData

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

(繼承來源 CodeObject)

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱