GadgetRegistration Class
Provides methods to register and unregister a SideShow gadget. This class cannot be inherited.
Namespace: Microsoft.SideShow
Assembly: Microsoft.SideShow (in microsoft.sideshow.dll)
Usage
Syntax
'Declaration
Public NotInheritable Class GadgetRegistration
public static class GadgetRegistration
public ref class GadgetRegistration abstract sealed
public final class GadgetRegistration
public final class GadgetRegistration
Example
This example code demonstrates how to register a SideShow gadget with Windows.
private static void SampleRegister()
{
// Set the gadget's GUID.
Guid gadgetId = new Guid("{0530B726-F6D5-4a66-900E-3C7673316F3B}");
// Register the gadget.
GadgetRegistration.Register(
false, // Register gadget for current user only
gadgetId, // Guid for the registry subkey
ScfSideShowGadget.ScfEndpointId, // Endpoints registry value
"Example SideShow gadget", // FriendlyName registry value
null, // StartCommand registry value
null, // Icon registry value, this gadget will use the generic gadget icon.
false, // OnlineOnly registry value
GadgetCachePolicies.KeepNewest, // CachePolicy registry value
null); // PropertyPage registry value
}
Inheritance Hierarchy
System.Object
Microsoft.SideShow.GadgetRegistration
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