共用方式為


VCFileCodeModel.Parent Property

Gets the immediate parent object of a given object.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

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

Property Value

Type: EnvDTE.ProjectItem
A ProjectItem object.

Implements

FileCodeModel2.Parent

Remarks

The Parent property returns the immediate parent to the object or collection.

.NET Framework Security

See Also

Reference

VCFileCodeModel Interface

Parent Overload

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples