Share via


FileCodeModel.Parent Property

Gets the immediate parent object of a FileCodeModel object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
ReadOnly Property Parent As ProjectItem
'Usage
Dim instance As FileCodeModel 
Dim value As ProjectItem 

value = instance.Parent
ProjectItem Parent { get; }
property ProjectItem^ Parent {
    ProjectItem^ get ();
}
function get Parent () : ProjectItem

Property Value

Type: EnvDTE.ProjectItem
A ProjectItem object.

Remarks

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

.NET Framework Security

See Also

Reference

FileCodeModel Interface

FileCodeModel Members

EnvDTE Namespace

Other Resources

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