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

新的呼叫位置目標。

屬性

適用於