共用方式為


VCCodeImport.Parent 屬性

取得指定物件的直接上層父物件。

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

語法

'宣告
ReadOnly Property Parent As Object
Object Parent { get; }
property Object^ Parent {
    Object^ get ();
}
abstract Parent : Object with get
function get Parent () : Object

屬性值

類型:Object
直屬父物件。

備註

Parent 屬性會將直接上層父代傳給物件或集合。 如果您想取得包含的集合,請使用 Collection 屬性。

.NET Framework 安全性

請參閱

參考

VCCodeImport 介面

Microsoft.VisualStudio.VCCodeModel 命名空間

其他資源

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