Export (0) Print
Expand All
ID
Top
Expand Minimize

Parent Property (General Extensibility)

Visual Studio .NET 2003

Returns the immediate parent object of a given object.

[Visual Basic .NET]
Public ReadOnly Property Parent() As Object
[Visual Basic 6]
Property Get Parent() As Object
[C++]
HRESULT __stdcall get_Parent(
   /* [out, retval] */ IDispatch** retVal
);
[C#]
object Parent {get;}
[JScript .NET]
public function get Parent() : 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.

Example

Sub ParentExample()
   Dim TWin As Window = DTE.Windows.Item(Constants.vsWindowKindTaskList)
   Dim TL As TaskList = TWin.Object
   Dim win As Window
   win = TL.Parent
   MsgBox("Window's ObjectKind value: " & win.ObjectKind.ToString)
End Sub

See Also

Applies To: AddIns Collection | BuildManager Object | Breakpoint Object | Breakpoints Collection | BuildDependencies Collection | CodeAttribute Object | CodeClass Object | CodeDelegate Object | CodeElements Collection | CodeEnum Object | CodeFunction Object | CodeInterface Object | CodeModel Object | CodeNameSpace Object | CodeParameter Object | CodeProperty Object | CodeStruct Object | CodeType Object | CodeTypeRef Object | CodeVariable Object | Commands Collection | CommandWindow Object | ConfigurationManager Object | Configurations Collection | ContextAttributes Collection | Debugger Object | Documents Collection | EditPoint Object | Expression Object | Expressions Collection | FileCodeModel Object | Find Object | Globals Object | HTMLWindow Object | Imports Object | ItemOperations Object | Language Object | Languages Collection | LinkedWindows Collection | Macros Object | ObjectExtenders Object | OutputGroups Collection | OutputWindow Object | OutputWindowPanes Collection | Process Object | Processes Collection | Program Object | Programs Collection | ProjectItems Collection | Projects Collection | Properties Collection | Property Object | SelectedItems Collection | SelectionContainer Object | Solution Object | SolutionBuild Object | SolutionConfigurations Collection | SolutionContexts Collection | SourceControl Object | StackFrame Object | StackFrames Collection | StatusBar Object | TaskItems Collection | TaskList Object | TextDocument Object | TextPanes Collection | TextPoint Object | TextRanges Collection | TextSelection Object | TextWindow Object | Thread Object | Threads Collection | ToolBox Object | ToolBoxItems Collection | ToolBoxTabs Collection | UIHierarchy Object | UIHierarchyItems Collection | UndoContext Object | VCCodeAttribute Object | VCCodeBase Object | VCCodeClass Object | VCCodeDelegate Object | VCCodeElement Object | VCCodeElements Collection | VCCodeEnum Object | VCCodeEvent Object | VCCodeFunction Object | VCCodeIDLCoClass Object | VCCodeIDLImport Object | VCCodeIDLImportLib Object | VCCodeIDLLibrary Object | VCCodeImport Object | VCCodeInclude Object | VCCodeInterface Object | VCCodeMacro Object | VCCodeMap Object | VCCodeMapEntry Object | VCCodeModel Object | VCCodeNamespace Object | VCCodeParameter Object | VCCodeProperty Object | VCCodeStruct Object | VCCodeTypedef Object | VCCodeUnion Object | VCCodeUsing Object | VCCodeVariable Object | VCFile Object | VCFileCodeModel Object | VCFileConfiguration Object | VCFilter Object | VCProject Object | VCProjectItem Object | VirtualPoint Object | WindowConfigurations Collection | Windows Collection

Show:
© 2014 Microsoft