IAddInEntryPoint.Launch Method

Starts running an application.

Syntax

public void Launch(
   AddInHost host
);

Parameters

host

Microsoft.MediaCenter.AddInHost.  An application uses this interface to access other interfaces provided by the Microsoft.MediaCenter namespace.

Return Value

This method does not return a value.

Remarks

Because the Windows Media Center object is guaranteed to be valid only until the Launch method returns, an on-demand application must make all calls to the Windows Media Center API within the context of the application's Launch method. Calling the Windows Media Center object after the Launch method returns can result in a fatal error. If your application's Launch method spawns multiple threads, those threads must all be terminated before your Launch method returns.

After calling the Launch method, if you do not call any method directly from the host object, .NET remoting releases unused objects every five minutes. To avoid this, use the host object or use the objects within five minutes to prevent them from being released.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter.Hosting

Assembly: Microsoft.MediaCenter.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also