Package system.windows.forms
Class WindowsFormsSynchronizationContext
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.threading.SynchronizationContext
-
- system.windows.forms.WindowsFormsSynchronizationContext
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class WindowsFormsSynchronizationContext extends SynchronizationContext implements java.lang.AutoCloseable
The base .NET class managing System.Windows.Forms.WindowsFormsSynchronizationContext, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.WindowsFormsSynchronizationContext
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Windows.Formsstatic java.lang.StringclassNameQualified class name: System.Windows.Forms.WindowsFormsSynchronizationContextstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description WindowsFormsSynchronizationContext()WindowsFormsSynchronizationContext(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsFormsSynchronizationContextcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoWindowsFormsSynchronizationContext, a cast assert is made to check if types are compatible.voidclose()SynchronizationContextCreateCopy()voidDispose()static booleangetAutoInstall()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypevoidPost(SendOrPostCallback d, NetObject state)voidSend(SendOrPostCallback d, NetObject state)static voidsetAutoInstall(boolean AutoInstall)voidsetJCOInstance(JCObject instance)static voidUninstall()-
Methods inherited from class system.threading.SynchronizationContext
getCurrent, IsWaitNotificationRequired, OperationCompleted, OperationStarted, SetSynchronizationContext
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Forms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.WindowsFormsSynchronizationContext- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WindowsFormsSynchronizationContext
public WindowsFormsSynchronizationContext(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
WindowsFormsSynchronizationContext
public WindowsFormsSynchronizationContext() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, AbandonedMutexException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, ConfigurationErrorsException, CultureNotFoundException, NotSupportedException, MissingManifestResourceException, Win32Exception, OutOfMemoryException, SecurityException, KeyNotFoundException, ExternalException- Throws:
java.lang.ThrowableArgumentExceptionObjectDisposedExceptionAbandonedMutexExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionConfigurationErrorsExceptionCultureNotFoundExceptionNotSupportedExceptionMissingManifestResourceExceptionWin32ExceptionOutOfMemoryExceptionSecurityExceptionKeyNotFoundExceptionExternalException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classSynchronizationContext- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classSynchronizationContext- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classSynchronizationContext- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classSynchronizationContext- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classSynchronizationContext
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classSynchronizationContext- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static WindowsFormsSynchronizationContext cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoWindowsFormsSynchronizationContext, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
WindowsFormsSynchronizationContextinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CreateCopy
public SynchronizationContext CreateCopy() throws java.lang.Throwable
- Overrides:
CreateCopyin classSynchronizationContext- Throws:
java.lang.Throwable
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullException
-
Post
public void Post(SendOrPostCallback d, NetObject state) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, Win32Exception, NotSupportedException, SecurityException, OutOfMemoryException, UnauthorizedAccessException, IOException, ConfigurationException, FileNotFoundException, DirectoryNotFoundException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidEnumArgumentException, WaitHandleCannotBeOpenedException, InvalidAsynchronousStateException
- Overrides:
Postin classSynchronizationContext- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionWin32ExceptionNotSupportedExceptionSecurityExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionIOExceptionConfigurationExceptionFileNotFoundExceptionDirectoryNotFoundExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidEnumArgumentExceptionWaitHandleCannotBeOpenedExceptionInvalidAsynchronousStateException
-
Send
public void Send(SendOrPostCallback d, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, InvalidAsynchronousStateException, FormatException, Win32Exception, SecurityException, OutOfMemoryException, UnauthorizedAccessException, IOException, ConfigurationException, FileNotFoundException, DirectoryNotFoundException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidEnumArgumentException, WaitHandleCannotBeOpenedException, AbandonedMutexException
- Overrides:
Sendin classSynchronizationContext- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidAsynchronousStateExceptionFormatExceptionWin32ExceptionSecurityExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionIOExceptionConfigurationExceptionFileNotFoundExceptionDirectoryNotFoundExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidEnumArgumentExceptionWaitHandleCannotBeOpenedExceptionAbandonedMutexException
-
Uninstall
public static void Uninstall() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, SecurityException, ArgumentOutOfRangeException, NullReferenceException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getAutoInstall
public static boolean getAutoInstall() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAutoInstall
public static void setAutoInstall(boolean AutoInstall) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-