Sdílet prostřednictvím


CodeImport.Parent Property

Definition

Gets the object containing this import.

public:
 property System::Object ^ Parent { System::Object ^ get(); };
public:
 property Platform::Object ^ Parent { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(203)]
public object Parent { [System.Runtime.InteropServices.DispId(203)] get; }
[<System.Runtime.InteropServices.DispId(203)>]
[<get: System.Runtime.InteropServices.DispId(203)>]
member this.Parent : obj
Public ReadOnly Property Parent As Object

Property Value

The parent object of this import.

Attributes

Remarks

For code like:

Namespace someNamespace  
{using Sys win.forms;}  

the parent is a CodeNamespace.

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