Class PolarServerApplications
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class is a container for Polar server spplications
public class PolarServerApplications : IEnumerable
- Inheritance
-
PolarServerApplications
- Implements
- Inherited Members
- Extension Methods
Properties
Count
Returns the number of applications in this collection.
public int Count { get; }
Property Value
this[object]
Default method to get an application by 1-based index or name.
public PolarServerApplication this[object pIndex] { get; }
Parameters
pIndex
objectThe 1-based index or name.
Property Value
- PolarServerApplication
The found application (else an exception is raised).
Methods
Add(string, AppConfiguration, bool)
This method adds an application with the specified name and configuration.
public PolarServerApplication Add(string pName, AppConfiguration pConfiguration, bool pDynamicApplication = true)
Parameters
pName
stringThe name of the new application.
pConfiguration
AppConfigurationThe configuration holding the specifications of the new application.
pDynamicApplication
boolMust be True.
Returns
- PolarServerApplication
The new Polar Server application.
Exceptions
- Exception
In case of a failure, an exception is thrown.
ContainsKey(string)
Returns True if an application with the given name is found.
public bool ContainsKey(string pName)
Parameters
pName
stringThe name of the application to test.
Returns
- bool
True if found.
GetEnumerator()
The enumerator.
public IEnumerator GetEnumerator()
Returns
Remove(string)
This method removes the specified dynamic application
public void Remove(string pName)
Parameters
pName
stringThe name of the application to remove.
Exceptions
- Exception
In case of a failure, an exception is thrown.
TryGet(object)
Tries to get an application by 1-based index or name.
public PolarServerApplication TryGet(object pIndex)
Parameters
pIndex
objectThe 1-based index or name.
Returns
- PolarServerApplication
The found application or Nothing.