CodeStatement CodeStatement CodeStatement CodeStatement Class

定義

表示可衍生出所有程式碼陳述式 (Statement) 的 abstract 基底類別。Represents the abstract base class from which all code statements derive.

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

備註

CodeStatement為命名空間內的System.CodeDom程式碼語句提供抽象基類。CodeStatement provides an abstract base class for code statements within the System.CodeDom namespace.

建構函式

CodeStatement() CodeStatement() CodeStatement() CodeStatement()

初始化 CodeStatement 類別的新執行個體。Initializes a new instance of the CodeStatement class.

屬性

EndDirectives EndDirectives EndDirectives EndDirectives

取得包含結尾指示詞的 CodeDirectiveCollection 物件。Gets a CodeDirectiveCollection object that contains end directives.

LinePragma LinePragma LinePragma LinePragma

取得或設定程式碼陳述式發生所在的行。Gets or sets the line on which the code statement occurs.

StartDirectives StartDirectives StartDirectives StartDirectives

取得包含開頭指示詞的 CodeDirectiveCollection 物件。Gets a CodeDirectiveCollection object that contains start directives.

UserData UserData UserData UserData

取得目前物件的使用者可定義資料。Gets the user-definable data for the current object.

(Inherited from CodeObject)

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱