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
用法
Dim instance As VCCodeBase
Dim value As CodeType

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

Property Value

Type: 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.

Permissions

See Also

Concepts

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

Reference

VCCodeBase Interface

VCCodeBase Members

Microsoft.VisualStudio.VCCodeModel Namespace