Share via


ScfSideShowGadget.ScfEndpointId Property

Gets the Simple Content Format Endpoint ID.

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

Usage

Syntax

'Declaration
Public Shared ReadOnly Property ScfEndpointId As Guid
public static Guid ScfEndpointId { get; }
public:
static property Guid ScfEndpointId {
    Guid get ();
}
/** @property */
public static Guid get_ScfEndpointId ()
public static function get ScfEndpointId () : Guid

Property Value

A GUID that contains the Simple Content Format Endpoint ID.

Example

This example code registers a SideShow gadget with Windows by using the ScfEndpointId field as a parameter.

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
}

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

ScfSideShowGadget Class
ScfSideShowGadget Members
Microsoft.SideShow.SimpleContentFormat Namespace