Control.ResolveAdapter 方法


获取负责呈现指定控件的控件适配器。Gets the control adapter responsible for rendering the specified control.

 virtual System::Web::UI::Adapters::ControlAdapter ^ ResolveAdapter();
protected virtual System.Web.UI.Adapters.ControlAdapter ResolveAdapter ();
abstract member ResolveAdapter : unit -> System.Web.UI.Adapters.ControlAdapter
override this.ResolveAdapter : unit -> System.Web.UI.Adapters.ControlAdapter
Protected Overridable Function ResolveAdapter () As ControlAdapter


将呈现控件的 ControlAdapterA ControlAdapter that will render the control.


ASP.NET 网页可在各种设备上查看,这些设备能够从 Web 请求页面。ASP.NET Web pages are viewable across a wide range of devices that are capable of requesting pages from the Web. ResolveAdapter 方法返回控件适配器,该适配器负责在请求 ASP.NET 页的特定浏览器或设备上呈现控件。The ResolveAdapter method returns the control adapter responsible for rendering the control on the specific browser or device that requested the ASP.NET page.

返回的特定适配器类型取决于所呈现的 Control 类的派生类型。The specific adapter type returned depends on the descendent type of the Control class that is being rendered.

有关适配器的详细信息,请参阅自适应控制行为的体系结构概述For more information about adapters, see Architectural Overview of Adaptive Control Behavior.