Cassini Configuration API Documentation

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

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 port As Integer, _
   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,
   int port,
   string description,
   string physicalPath,
   string defaultDocument,
   bool keepRunning
);

Parameters

applicationID
Developer-defined aplication ID
name
Optional UI-friendly applciation name
port
Application port. Set to 0 to have system assigning free port to the application.
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

Remarks

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