CallSiteOps.Bind<T>(CallSiteBinder, CallSite<T>, Object[]) 方法

定義

警告

do not use this method

根據參數更新呼叫站目標,並制定新規則。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
generic <typename T>
 where T : class static T Bind(System::Runtime::CompilerServices::CallSiteBinder ^ binder, System::Runtime::CompilerServices::CallSite<T> ^ site, cli::array <System::Object ^> ^ args);
[System.Obsolete("do not use this method", true)]
public static T Bind<T>(System.Runtime.CompilerServices.CallSiteBinder binder, System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;
[<System.Obsolete("do not use this method", true)>]
static member Bind : System.Runtime.CompilerServices.CallSiteBinder * System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * obj[] -> 'T (requires 'T : null)
Public Shared Function Bind(Of T As Class) (binder As CallSiteBinder, site As CallSite(Of T), args As Object()) As T

類型參數

T

代表的類型 CallSite

參數

binder
CallSiteBinder

通話現場資料夾。

site
CallSite<T>

動態通話網站的一個實例。

args
Object[]

向呼叫網站提出論點。

傳回

T

新的呼叫網站目標。

屬性

適用於