ProxyGeneratorCreateProxy Method (Type, IInterceptor, Object) |
Generates a proxy implementing all the specified interfaces and
redirecting method invocations to the specifed interceptor.
Namespace: X3Platform.DynamicProxyAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual Object CreateProxy(
Type theInterface,
IInterceptor interceptor,
Object target
)
public:
virtual Object^ CreateProxy(
Type^ theInterface,
IInterceptor^ interceptor,
Object^ target
)
Parameters
- theInterface
- Type: SystemType
Interface to be implemented - interceptor
- Type: X3Platform.DynamicProxyIInterceptor
instance of IInterceptor - target
- Type: SystemObject
The proxy target.
Return Value
Type:
ObjectProxy instance
See Also