RealProxy.GetProxiedType Method ()

 

Returns the Type of the object that the current instance of RealProxy represents.

Namespace:   System.Runtime.Remoting.Proxies
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
public Type GetProxiedType()

Return Value

Type: System.Type

The Type of the object that the current instance of RealProxy represents.

// Create an instance of MyProxy.
MyProxy myProxyInstance = new MyProxy(typeof(CustomServer));
// Get a CustomServer proxy.
CustomServer myHelloServer = (CustomServer)myProxyInstance.GetTransparentProxy();

.NET Framework
Available since 1.1
Return to top
Show: