Method COMInvoke
COMInvoke<T>(ApartmentState, Func<T>)
Invokes a delegate in a thread with the given apartment state.
public static T COMInvoke<T>(ApartmentState state, Func<T> func)
Parameters
state
ApartmentStatefunc
Func<T>
Returns
- T
Type Parameters
T
COMInvoke(ApartmentState, Action)
public static void COMInvoke(ApartmentState state, Action action)
Parameters
state
ApartmentStateaction
Action
COMInvoke<T>(Type, Func<T>)
Invokes a delegate in a thread with the apartment state required by the given COM class as defined by the COMInvokeAttribute on the class.
public static T COMInvoke<T>(Type ctype, Func<T> func)
Parameters
Returns
- T
Type Parameters
T
COMInvoke(Type, Action)
Calls COMInvoke<T>(Type, Func<T>).
public static void COMInvoke(Type ctype, Action action)