| SetupJVMWrapperUnwrapAndDemonizeOnT Method |
Creates and unwrap the JVM instance as daemon
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.5.13.240514-86ea0fe57add44a0d4dc719a1a99f3379a320f2e
Syntax public T UnwrapAndDemonizeOn<T>(
ParameterizedThreadStart handler,
Object arg = null,
ApartmentState apartment = ApartmentState.STA
)
where T : SetupJVMWrapper
Public Function UnwrapAndDemonizeOn(Of T As SetupJVMWrapper) (
handler As ParameterizedThreadStart,
Optional arg As Object = Nothing,
Optional apartment As ApartmentState = ApartmentState.STA
) As T
Parameters
- handler ParameterizedThreadStart
- An handler to the function to be invoked
- arg Object (Optional)
- The argument for handler. Default is null.
- apartment ApartmentState (Optional)
- The ApartmentState to be used when the thread is started
Type Parameters
- T
- The class extending SetupJVMWrapper
Return Value
TAn instance of
TRemarks apartment is valid only on Windows
See Also