| Visual Basic (Declaration) | |
|---|---|
Public Overridable Function CreateObjRef( _ ByVal requestedType As Type _ ) As ObjRef | |
| C# | |
|---|---|
public virtual ObjRef CreateObjRef( Type requestedType ) | |
Parameters
- requestedType
- The System.Type of the object that the new System.Runtime.Remoting.ObjRef will reference.
Return Value
Information required to generate a proxy.| Exception | Description |
|---|---|
| System.Runtime.Remoting.RemotingException | This instance is not a valid remoting object. |
| System.Security.SecurityException | The immediate caller does not have infrastructure permission. |