Provides a base class for accessing the types, directives, and controls in the current Web project document. This class must be inherited.
See Also: WebFormsReferenceManager Members
The System.Web.UI.Design.WebFormsReferenceManager base class is implemented by designer hosts to provide access to types, directives, and user controls defined in a Web project document. A control designer class can use the System.Web.UI.Design.WebFormsReferenceManager to access the definitions in the current document, and to add a new tag prefix to the current document.
You access the System.Web.UI.Design.WebFormsReferenceManager services supplied by the designer host through the WebFormsRootDesigner.ReferenceManager property of a System.Web.UI.Design.WebFormsRootDesigner implementation. The System.Web.UI.Design.WebFormsRootDesigner implementation can be accessed in two ways:
Classes deriving from System.Web.UI.Design.ControlDesigner can use the ControlDesigner.RootDesigner property to access a System.Web.UI.Design.WebFormsRootDesigner implementation supplied by the designer host. The System.Web.UI.Design.WebFormsReferenceManager implementation is supplied through the WebFormsRootDesigner.ReferenceManager property of ControlDesigner.RootDesigner property.
Other designer classes can access the System.Web.UI.Design.WebFormsRootDesigner implementation by first obtaining the System.ComponentModel.Design.IDesignerHost services implementation through the designer component's System.ComponentModel.Component.Site, and then calling the System.ComponentModel.Design.IDesignerHost.GetDesigner(System.ComponentModel.IComponent) method using the designer host System.ComponentModel.Design.IDesignerHost.RootComponent property.