नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
A component container is a specialized class that acts as a means of organizing and containing components. Through a container you can track your components, communicate with them via the ISite that hosts the component, and provide a means of common disposal after they are no longer needed. For details, see Containers, Sites, and Components.
To create a component container
Declare a variable of the type Container, or any class that implements the IContainer interface.
Dim myContainer as System.ComponentModel.ContainerSystem.ComponentModel.Container myContainer;Create an instance of the container class in your variable.
myContainer = New System.ComponentModel.Container()myContainer = new System.ComponentModel.Container();Call the Add and Remove methods to add and remove components to and from your container.
myContainer.Add(myComponent) myContainer.Remove(myComponent)myContainer.Add(myComponent); myContainer.Remove(myComponent);
See Also
Tasks
How to: Extend Component Containers