This documentation is archived and is not being maintained.
DataListDesigner.Initialize Method
.NET Framework 1.1
Initializes the designer with the specified component.
[Visual Basic] Overrides Public Sub Initialize( _ ByVal component As IComponent _ ) Implements IDesigner.Initialize [C#] public override void Initialize( IComponent component ); [C++] public: void Initialize( IComponent* component ); [JScript] public override function Initialize( component : IComponent );
Parameters
- component
- The IComponent for the designer.
Implements
Example
[Visual Basic] The following code example overrides the Initialize method to allow the designer class to display only instances of the SimpleDataList class.
[Visual Basic] This code example is part of a larger example provided for the DataListDesigner class.
[Visual Basic]
' Override the Initialize method to ensure that
' only an instance of the SimpleDataList class is
' used by this designer class.
Public Overrides Sub Initialize(component As IComponent)
Debug.Assert( _
TypeOf component Is SimpleDataList, _
"SimpleDataListDesigner::Initialize - Invalid SimpleDataList Control")
simpleList = CType(component, SimpleDataList)
MyBase.Initialize(component)
End Sub
[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
DataListDesigner Class | DataListDesigner Members | System.Web.UI.Design.WebControls Namespace | IDesigner | DataList
Show: