Persistate API documentation
StartNewSession Method (ui, modelAssembly, settingsName)
NamespacesPersistateDbaSessionStartNewSession(UserInterface, Assembly, String)

[This is preliminary documentation and is subject to change.]

Creates a new session, connected to a user interface.
Declaration Syntax
C#
public static DbaSession StartNewSession(
	UserInterface ui,
	Assembly modelAssembly,
	string settingsName
)
Parameters
ui (UserInterface)
The user interface to connect the session to. This is usually newly constructed.
modelAssembly (Assembly)
The assembly containing the model module for the application starting the new session
settingsName (String)
TThe name to use to retrieve connection settings from the registry. If null or empty, default settings are used.
Return Value
The newly created DbaSession object, or null if the user cancelled from the connect dialogue box.
Remarks
You only need to call this in a stand-alone ExecutionContext. Usually, you don't need to alter the call which is included in the generated StartUp class for the application.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)