SideShowGadget.RevokeNotification Method
Revokes a notification from all connected Windows SideShow-compatible devices.
Namespace: Microsoft.SideShow
Assembly: Microsoft.SideShow (in microsoft.sideshow.dll)
Usage
Syntax
'Declaration
Public Sub RevokeNotification ( _
notificationId As Integer _
)
public void RevokeNotification (
int notificationId
)
public:
void RevokeNotification (
int notificationId
)
public void RevokeNotification (
int notificationId
)
public function RevokeNotification (
notificationId : int
)
Parameters
- notificationId
A Int32 that identifies the notification to revoke.
Example
The following example code shows how to revoke a specific notification from connected Windows SideShow-compatible devices.
private static void SampleRevokeNotification()
{
// Set the gadget's GUID.
Guid gadgetId = new Guid("{0530B726-F6D5-4a66-900E-3C7673316F3B}");
// Add the gadget's registry subkey and values.
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);
// Construct a Simple Content Format SideShow gadget for the gadget's Guid.
using (ScfSideShowGadget gadget = new ScfSideShowGadget(gadgetId))
{
gadget.ShowNotification(100, "This is the notification caption", "This is a notification message");
Thread.Sleep(10000);
// Revoke the notification.
gadget.RevokeNotification(100);
}
}
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
SideShowGadget Class
SideShowGadget Members
Microsoft.SideShow Namespace