Share via


ServiceAttribute.AddOnDemand Property

Specifies that the service instance will be created and added to the container upon request of that service (delayed creation).

Namespace: Microsoft.Practices.CompositeUI
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Property AddOnDemand As Boolean
'Usage
Dim instance As ServiceAttribute
Dim value As Boolean

value = instance.AddOnDemand

instance.AddOnDemand = value
public bool AddOnDemand { get; set; }
public:
property bool AddOnDemand {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_AddOnDemand ()

/** @property */
public void set_AddOnDemand (boolean value)
public function get AddOnDemand () : boolean

public function set AddOnDemand (value : boolean)

See Also

Reference

ServiceAttribute Class
ServiceAttribute Members
Microsoft.Practices.CompositeUI Namespace