Partager via


DesignSurfaceExtensionAttribute.LoadAtIdle Property

Controls when, relative to the loading of a designer used by a VSPackage, the extensions provided by the implementation of the DesignSurfaceExtensionAttribute registered by DesignSurfaceExtensionAttribute are installed.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Property LoadAtIdle As Boolean
public bool LoadAtIdle { get; set; }
public:
property bool LoadAtIdle {
    bool get ();
    void set (bool value);
}
member LoadAtIdle : bool with get, set
function get LoadAtIdle () : boolean 
function set LoadAtIdle (value : boolean)

Property Value

Type: Boolean
A Boolean value is returned:

true

The object providing design surface modifications by implementing DesignSurfaceExtension will be instantiated and initialized only during the idle period after the designer used by the VSPackage has finished loading.

false

The object providing design surface modifications by implementing DesignSurfaceExtension will be instantiated and initialized when a designer starts up.

Remarks

By default the value of LoadAtIdle is false.

.NET Framework Security

See Also

Reference

DesignSurfaceExtensionAttribute Class

Microsoft.VisualStudio.Shell.Design Namespace

DesignSurfaceExtensionAttribute

DesignSurfaceExtension

DesignSurface

IDesigner

IDesignerHost

Other Resources

Extending Design-Time Support