CallSiteOps.AddRule<T>(CallSite<T>, T) 方法

定义

注意

do not use this method

将一个规则添加到在动态调用站点上维护的缓存。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
generic <typename T>
 where T : class static void AddRule(System::Runtime::CompilerServices::CallSite<T> ^ site, T rule);
[System.Obsolete("do not use this method", true)]
public static void AddRule<T> (System.Runtime.CompilerServices.CallSite<T> site, T rule) where T : class;
[<System.Obsolete("do not use this method", true)>]
static member AddRule : System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * 'T -> unit (requires 'T : null)
Public Shared Sub AddRule(Of T As Class) (site As CallSite(Of T), rule As T)

类型参数

T

CallSite 的委托的类型。

参数

site
CallSite<T>

动态调用站点的实例。

rule
T

调用站点规则的实例。

属性

适用于