StrategyBasedComWrappers.CreateDefaultCacheStrategy 方法

定义

创建用于缓存 COM 对象的默认策略。

protected:
 static System::Runtime::InteropServices::Marshalling::IIUnknownCacheStrategy ^ CreateDefaultCacheStrategy();
protected static System.Runtime.InteropServices.Marshalling.IIUnknownCacheStrategy CreateDefaultCacheStrategy ();
static member CreateDefaultCacheStrategy : unit -> System.Runtime.InteropServices.Marshalling.IIUnknownCacheStrategy
Protected Shared Function CreateDefaultCacheStrategy () As IIUnknownCacheStrategy

返回

默认策略缓存每个接口的接口指针,无论最初检索到哪个线程。

适用于