Share via


ScfSideShowGadget Constructor (Guid, Boolean)

Initializes a new instance of the ScfSideShowGadget class by using the specified gadgetId Guid object and the cache.

Namespace: Microsoft.SideShow.SimpleContentFormat
Assembly: Microsoft.SideShow (in microsoft.sideshow.dll)

Usage

Syntax

'Declaration
Public Sub New ( _
    gadgetId As Guid, _
    useCache As Boolean _
)
public ScfSideShowGadget (
    Guid gadgetId,
    bool useCache
)
public:
ScfSideShowGadget (
    Guid gadgetId, 
    bool useCache
)
public ScfSideShowGadget (
    Guid gadgetId, 
    boolean useCache
)
public function ScfSideShowGadget (
    gadgetId : Guid, 
    useCache : boolean
)

Parameters

  • gadgetId
    A Guidthat identifies the gadget that is communicating with the Windows SideShow-compatible device.
  • useCache
    A Boolean that indicates whether the managed API stores content provided by the gadget. See Remarks.

Remarks

Constructors that contain the useCache parameter enable you to turn off the managed API’s content cache by specifying false. If you want the managed API to cache content, you can use a similar constructor without the useCache parameter.

Note that the managed API’s content cache is not related to the device cache algorithm, which specifies behavior for the device content cache.

Platforms

Development Platforms

Windows Vista Home Premium, Windows Vista Business, Windows Vista Enterprise, Windows Vista Ultimate

Target Platforms

Windows Vista Home Premium, Windows Vista Business, Windows Vista Enterprise, Windows Vista Ultimate

See Also

Reference

ScfSideShowGadget Class
ScfSideShowGadget Members
Microsoft.SideShow.SimpleContentFormat Namespace

Other Resources

About Windows SideShow Gadgets