ThreadHelper.GetInvocationWrapper 方法

定义

派生类必须实现 GetInvocationWrapper 方法才能实现可释放的对象,该对象将包装所调用的方法。 这可能为 null。

protected:
 abstract IDisposable ^ GetInvocationWrapper();
protected abstract IDisposable GetInvocationWrapper ();
abstract member GetInvocationWrapper : unit -> IDisposable
Protected MustOverride Function GetInvocationWrapper () As IDisposable

返回

IDisposable

一个可释放的包装。

适用于