CodeDirective 類別

定義

做為程式碼指示詞類別的基底類別。Serves as the base class for code directive classes.

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

備註

類別必須繼承自CodeDirective類別, 才能包含CodeDirectiveCollection在中。A class must inherit from the CodeDirective class to be contained in a CodeDirectiveCollection.

建構函式

CodeDirective()

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

屬性

UserData

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

(繼承來源 CodeObject)

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於