CodeObject 類別

定義

提供大多數程式碼文件物件模型(CodeDOM)物件的共通基底類別。

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

備註

此類別是大多數 CodeDOM 物件的基底類別。

建構函式

名稱 Description
CodeObject()

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

屬性

名稱 Description
UserData

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

方法

名稱 Description
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於