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)

public:
[SecurityCriticalAttribute]
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 = gcnew MyProxy( CustomServer::typeid );

// Get a CustomServer proxy.
CustomServer^ myHelloServer = static_cast<CustomServer^>(myProxyInstance->GetTransparentProxy());

.NET Framework
Available since 1.1
Return to top
Show: