共用方式為


VCCodeFunction.MustImplement 屬性

取得或設定值,指出表示是否將項目宣告為抽象而因此需要實作。

命名空間:  Microsoft.VisualStudio.VCCodeModel
組件:  Microsoft.VisualStudio.VCCodeModel (在 Microsoft.VisualStudio.VCCodeModel.dll 中)

語法

'宣告
Property MustImplement As Boolean
bool MustImplement { get; set; }
property bool MustImplement {
    bool get ();
    void set (bool value);
}
abstract MustImplement : bool with get, set
function get MustImplement () : boolean
function set MustImplement (value : boolean)

屬性值

型別:System.Boolean
如果方法因已宣告為抽象而需要實作,則為 true,否則為 false。

備註

MustImplement 會傳回或設定是否已實作該方法,或需要在子類別中實作。 某些語言中,這可能每次都false,而且該設定MustImplement ,根據程式語言可能會失敗。

.NET Framework 安全性

請參閱

參考

VCCodeFunction 介面

Microsoft.VisualStudio.VCCodeModel 命名空間

其他資源

HOW TO:編譯和執行 Automation 物件模型程式碼範例