Vb.net 在ascx usercontrol上重写GetType方法

Vb.net 在ascx usercontrol上重写GetType方法,vb.net,webforms,user-controls,ascx,aspx-user-control,Vb.net,Webforms,User Controls,Ascx,Aspx User Control,我想重写ascx usercontroll上的Gettype方法,以返回一个特定类型,以便能够与TypeOf进行比较 我当前的Aproach在我的usercontroll上添加属性并: Private Property Type As App.Controls.DropdownCustom Public Shadows Function [GetType]() As Type Return Type.GetType() End Function 但是他仍然返回当前类型的userc

我想重写ascx usercontroll上的Gettype方法,以返回一个特定类型,以便能够与TypeOf进行比较

我当前的Aproach在我的usercontroll上添加属性并:

   Private Property Type As App.Controls.DropdownCustom
Public Shadows Function [GetType]() As Type
    Return Type.GetType()
End Function

但是他仍然返回当前类型的usercontroll名称。

App.Controls是什么类型的?App.Controls是另一个类示例mycustomnamecontroll的名称空间