DispatchProxy.Create Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| Create(Type, Type) |
sınıfından |
| Create<T,TProxy>() |
sınıfından |
Create(Type, Type)
- Kaynak:
- DispatchProxy.cs
- Kaynak:
- DispatchProxy.cs
- Kaynak:
- DispatchProxy.cs
- Kaynak:
- DispatchProxy.cs
sınıfından proxyType türetilen ve arabirimini interfaceTypeuygulayan bir nesne örneği oluşturur.
public:
static System::Object ^ Create(Type ^ interfaceType, Type ^ proxyType);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating a proxy instance requires generating code at runtime")]
public static object Create(Type interfaceType, Type proxyType);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating a proxy instance requires generating code at runtime")>]
static member Create : Type * Type -> obj
Public Shared Function Create (interfaceType As Type, proxyType As Type) As Object
Parametreler
- interfaceType
- Type
Proxy'nin uygulaması gereken arabirim.
- proxyType
- Type
Ara sunucu sınıfı için kullanılacak temel sınıf.
Döndürülenler
uygulayan interfaceTypebir nesne örneği.
- Öznitelikler
Özel durumlar
interfaceType veya proxyType şeklindedir null.
interfaceType bir arabirim türü değildir.
-veya-
proxyType korumalı veya soyut ya da türünden DispatchProxy devralmıyor ya da parametresiz bir oluşturucuya sahip değil.
Şunlara uygulanır
Create<T,TProxy>()
- Kaynak:
- DispatchProxy.cs
- Kaynak:
- DispatchProxy.cs
- Kaynak:
- DispatchProxy.cs
- Kaynak:
- DispatchProxy.cs
- Kaynak:
- DispatchProxy.cs
sınıfından TProxy türetilen ve arabirimini Tuygulayan bir nesne örneği oluşturur.
public:
generic <typename T, typename TProxy>
where TProxy : System::Reflection::DispatchProxy static T Create();
public static T Create<T,TProxy>() where TProxy : System.Reflection.DispatchProxy;
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating a proxy instance requires generating code at runtime")]
public static T Create<T,TProxy>() where TProxy : System.Reflection.DispatchProxy;
static member Create : unit -> 'T (requires 'Proxy :> System.Reflection.DispatchProxy)
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating a proxy instance requires generating code at runtime")>]
static member Create : unit -> 'T (requires 'Proxy :> System.Reflection.DispatchProxy)
Public Shared Function Create(Of T, TProxy) () As T
Tür Parametreleri
- T
Proxy'nin uygulaması gereken arabirim.
- TProxy
Ara sunucu sınıfı için kullanılacak temel sınıf.
Döndürülenler
uygulayan Tbir nesne örneği.
- Öznitelikler
Özel durumlar
T bir arabirim türü değil, TProxy korumalı veya soyut ya da parametresiz oluşturucuya sahip değil.