Cassini Configuration API Documentation

Metabase.RegisterApplication Method (String)

Registers an application and writes changes to the metabase file.

[Visual Basic]
Overloads Public Shared Function RegisterApplication( _
   ByVal physicalPath As String _
) As ApplicationEntry
[C#]
public static ApplicationEntry RegisterApplication(
   string physicalPath
);

Parameters

physicalPath
Path to the folder containing application files

Return Value

Application object with auto-generated application ID and system-assigned port.

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