CodeProperty2.Parent2 属性

定义

获取元素的父级。Gets the parent of the element.

public:
 property EnvDTE::CodeElement ^ Parent2 { EnvDTE::CodeElement ^ get(); };
public:
 property EnvDTE::CodeElement ^ Parent2 { EnvDTE::CodeElement ^ get(); };
[System.Runtime.InteropServices.DispId(207)]
[get: System.Runtime.InteropServices.DispId(207)]
public EnvDTE.CodeElement Parent2 { get; }
[<System.Runtime.InteropServices.DispId(207)>]
[<get: System.Runtime.InteropServices.DispId(207)>]
member this.Parent2 : EnvDTE.CodeElement
Public ReadOnly Property Parent2 As CodeElement

属性值

CodeElement

返回包含元素的类、接口或结构。Returns the class, interface, or struct containing the element.

属性

注解

备注

在进行了某些类型的编辑之后,代码模型元素(例如类、结构、函数、特性、委托等)的值可能变为非确定性的,这意味着不能确定它们的值始终保持不变。The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same.

适用于