GadgetRegistration.Unregister Method

Unregisters a SideShow gadget with Windows.

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

Usage

Syntax

'Declaration
Public Shared Sub Unregister ( _
    registerForAllUsers As Boolean, _
    gadgetId As Guid _
)
public static void Unregister (
    bool registerForAllUsers,
    Guid gadgetId
)
public:
static void Unregister (
    bool registerForAllUsers, 
    Guid gadgetId
)
public static void Unregister (
    boolean registerForAllUsers, 
    Guid gadgetId
)
public static function Unregister (
    registerForAllUsers : boolean, 
    gadgetId : Guid
)

Parameters

  • registerForAllUsers
    A Booleanthat indicates whether to unregister the gadget for all users, or just for the current user. Set this parameter to true to unregister the gadget for all users, or false to unregister the gadget for the current user only.
  • gadgetId
    A Guid that identifies the gadget's ID.

Example

This example code registers a gadget with Windows.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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

GadgetRegistration Class
GadgetRegistration Members
Microsoft.SideShow Namespace