Freigeben über


CodeProperty2.Parent2 Property

Definition

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)]
public EnvDTE.CodeElement Parent2 { [System.Runtime.InteropServices.DispId(207)] get; }
[<System.Runtime.InteropServices.DispId(207)>]
[<get: System.Runtime.InteropServices.DispId(207)>]
member this.Parent2 : EnvDTE.CodeElement
Public ReadOnly Property Parent2 As CodeElement

Property Value

Returns the class, interface, or struct containing the element.

Attributes

Remarks

Note

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.

Applies to