DispatchProxy.Create<T,TProxy> 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.
Creates an object instance that derives from class TProxy
and implements interface T.
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;
static member Create : unit -> 'T (requires 'Proxy :> System.Reflection.DispatchProxy)
Public Shared Function Create(Of T, TProxy) () As T
Type Parameters
- T
The interface the proxy should implement.
- TProxy
The base class to use for the proxy class.
Returns
An object instance that implements T.
Exceptions
T is not an interface type, or TProxy is sealed or abstract or does not have a parameterless constructor.