Redigera

Dela via


DesignerSerializationManager.Container Property

Definition

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.

Applies to