共用方式為


VCCodeIDLImport.Comment 屬性

取得或設定與此程式碼項目關聯的註解。

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

語法

'宣告
Property Comment As String
string Comment { get; set; }
property String^ Comment {
    String^ get ();
    void set (String^ value);
}
abstract Comment : string with get, set
function get Comment () : String
function set Comment (value : String)

屬性值

型別:System.String
與程式碼項目相關聯的註解。

備註

Comment 會設定或傳回標頭註解。 傳回時,這些文字並不包含任何註解語法。 註解文字係衍生自含有程式碼項目的來源文件。 所收集的標頭註解行數會根據所撰寫的註解的語言而有所不同。

設定時, Comment嘗試維護的任何現有的註解,藉由使用行導向取代分隔式語法,可藉由維持導向式語法,可藉由維持註解碰觸到的程式碼項目,或以一個空白行,分隔任何縮排樣式等等。

.NET Framework 安全性

請參閱

參考

VCCodeIDLImport 介面

Microsoft.VisualStudio.VCCodeModel 命名空間

其他資源

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