CallSite<T>.Create(CallSiteBinder) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立動態呼叫站點的實例,初始化為負責執行時動態操作綁定的綁定器。
public:
static System::Runtime::CompilerServices::CallSite<T> ^ Create(System::Runtime::CompilerServices::CallSiteBinder ^ binder);
public static System.Runtime.CompilerServices.CallSite<T> Create(System.Runtime.CompilerServices.CallSiteBinder binder);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating arrays at runtime requires dynamic code generation.")]
public static System.Runtime.CompilerServices.CallSite<T> Create(System.Runtime.CompilerServices.CallSiteBinder binder);
static member Create : System.Runtime.CompilerServices.CallSiteBinder -> System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)>
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating arrays at runtime requires dynamic code generation.")>]
static member Create : System.Runtime.CompilerServices.CallSiteBinder -> System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)>
Public Shared Function Create (binder As CallSiteBinder) As CallSite(Of T)
參數
- binder
- CallSiteBinder
負責此呼叫站點動態操作執行時綁定的綁定器。
傳回
動態呼叫網站的新實例。
- 屬性