CallSiteOps.AddRule<T>(CallSite<T>, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
do not use this method
Adds a rule to the cache maintained on the dynamic call site.
This API supports the product infrastructure and is not intended to be used directly from your code.
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)
Type Parameters
- T
The type of the delegate of the CallSite.
Parameters
- site
- CallSite<T>
An instance of the dynamic call site.
- rule
- T
An instance of the call site rule.
- Attributes
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ