다음을 통해 공유


VCCodeBase.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 CodeType
    Get
CodeType Parent { get; }
property CodeType^ Parent {
    CodeType^ get ();
}
abstract Parent : CodeType
function get Parent () : CodeType

Property Value

Type: EnvDTE.CodeType
A CodeType object.

Remarks

The Parent property returns the immediate parent to the object or collection. If you want to get the containing collection, then use the Collection property.

.NET Framework Security

See Also

Reference

VCCodeBase Interface

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

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