MarshalByRefObject::CreateObjRef Method (Type^)
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- requestedType
- Type: System::Type^
| Exception | Condition |
|---|---|
| RemotingException | This instance is not a valid remoting object. |
| SecurityException | The immediate caller does not have infrastructure permission. |
TheCreateObjRef method is called by remote object creation methods such as AppDomain::CreateInstance and AppDomain::CreateInstanceAndUnwrap. In most cases, there is no need to override this method.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 1.1