ProxyAttribute::CreateInstance Method (Type^)

 

Creates either an uninitialized MarshalByRefObject or a transparent proxy, depending on whether the specified type can exist in the current context.

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

public:
[SecurityCriticalAttribute]
virtual MarshalByRefObject^ CreateInstance(
	Type^ serverType
)

Parameters

serverType
Type: System::Type^

The object type to create an instance of.

Return Value

Type: System::MarshalByRefObject^

An uninitialized MarshalByRefObject or a transparent proxy.

// Create an instance of ServicedComponentProxy
virtual MarshalByRefObject^ CreateInstance( Type^ serverType ) override
{
   return ProxyAttribute::CreateInstance( serverType );
}

.NET Framework
Available since 1.1
Return to top
Show: