RealProxy.GetProxiedType 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.
public:
Type ^ GetProxiedType();
public Type GetProxiedType ();
[System.Security.SecurityCritical]
public Type GetProxiedType ();
member this.GetProxiedType : unit -> Type
[<System.Security.SecurityCritical>]
member this.GetProxiedType : unit -> Type
Public Function GetProxiedType () As Type
Returns
The Type of the object that the current instance of RealProxy represents.
- Attributes
Examples
// Create an instance of MyProxy.
MyProxy^ myProxyInstance = gcnew MyProxy( CustomServer::typeid );
// Get a CustomServer proxy.
CustomServer^ myHelloServer = static_cast<CustomServer^>(myProxyInstance->GetTransparentProxy());
// Create an instance of MyProxy.
MyProxy myProxyInstance = new MyProxy(typeof(CustomServer));
// Get a CustomServer proxy.
CustomServer myHelloServer = (CustomServer)myProxyInstance.GetTransparentProxy();
' Create an instance of MyProxy.
Dim myProxyInstance As New MyProxy(GetType(CustomServer))
' Get a CustomServer proxy.
Dim myHelloServer As CustomServer = _
CType(myProxyInstance.GetTransparentProxy(), CustomServer)
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.