Cassini Configuration API Documentation

Metabase.RegisterApplication Method (Guid, String, String, String, String, Boolean)

THIS is the method you most likely will need to call after your application was installed on user's machine. Registers an application and writes changes to the metabase file.

[Visual Basic]
Overloads Public Shared Function RegisterApplication( _
   ByVal applicationID As Guid, _
   ByVal name As String, _
   ByVal description As String, _
   ByVal physicalPath As String, _
   ByVal defaultDocument As String, _
   ByVal keepRunning As Boolean _
) As ApplicationEntry
[C#]
public static ApplicationEntry RegisterApplication(
   Guid applicationID,
   string name,
   string description,
   string physicalPath,
   string defaultDocument,
   bool keepRunning
);

Parameters

applicationID
Developer-defined aplication ID
name
Optional UI-friendly applciation name
description
Optional UI-friendly application description. Can be left blank.
physicalPath
Path to the folder containing all the application files
defaultDocument
Default application document. Can be left blank if it's default.aspx or index.htm.
keepRunning
Tells whether the application should always be loaded in memory to speed up frist page response time.

Return Value

Application object with system-assigned port.

Remarks

This is the recommended method of registering one Cassini application. As with all static RegisterApplication() and UnrtegisterApplication() methods, use this method when you register one application. If you need to register multiple applications, instantiate Metabase object by calling Metabase.Load() and then call appropriate Register or Unregister method followed by the Save() call to write change to the metabase file.

See Also

Metabase Class | CassiniConfiguration Namespace | Metabase.RegisterApplication Overload List