Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft