Table of Contents

Method COMInvoke

Namespace
Innova.Prism.Library.Security
Assembly
Innova.Prism.Library.dll

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 ApartmentState
func Func<T>

Returns

T

Type Parameters

T

COMInvoke(ApartmentState, Action)

public static void COMInvoke(ApartmentState state, Action action)

Parameters

state ApartmentState
action 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

ctype Type
func Func<T>

Returns

T

Type Parameters

T

COMInvoke(Type, Action)

public static void COMInvoke(Type ctype, Action action)

Parameters

ctype Type
action Action