IReferenceService.GetComponent(Object) 方法
定义
获取包含指定组件的组件。Gets the component that contains the specified component.
public:
System::ComponentModel::IComponent ^ GetComponent(System::Object ^ reference);
public System.ComponentModel.IComponent GetComponent (object reference);
abstract member GetComponent : obj -> System.ComponentModel.IComponent
Public Function GetComponent (reference As Object) As IComponent
参数
- reference
- Object
为其检索父组件的对象。The object to retrieve the parent component for.
返回
包含指定对象的基 IComponent,如果不存在父组件,则为 null。The base IComponent that contains the specified object, or null if no parent component exists.