DesignerSerializationManager.Container Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets to the container for this serialization manager.
public:
property System::ComponentModel::IContainer ^ Container { System::ComponentModel::IContainer ^ get(); void set(System::ComponentModel::IContainer ^ value); };
public System.ComponentModel.IContainer Container { get; set; }
public System.ComponentModel.IContainer? Container { get; set; }
member this.Container : System.ComponentModel.IContainer with get, set
Public Property Container As IContainer
Property Value
The IContainer to which the serialization manager will add components.
Exceptions
The serialization manager has an active serialization session.
Remarks
If a container exists, all components that are created by the serialization manager will be added to the container. The default implementation of this property will search the service provider for an IDesignerHost and use the container provided by the designer host, should one exist. Otherwise, this property will return null
and no components will be added to a container.