LEADTOOLS Medical (Leadtools.Medical3D assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
CreateObjRef Method
See Also 
Leadtools.Medical3D Namespace > Medical3DControl Class : CreateObjRef Method



requestedType
The System.Type of the object that the new System.Runtime.Remoting.ObjRef will reference.
requestedType
The System.Type of the object that the new System.Runtime.Remoting.ObjRef will reference.
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

Syntax

Visual Basic (Declaration) 
<SecurityPermissionAttribute(Flags=SecurityPermissionFlag.Infrastructure, 
   Assertion=False, 
   UnmanagedCode=False, 
   SkipVerification=False, 
   Execution=False, 
   ControlThread=False, 
   ControlEvidence=False, 
   ControlPolicy=False, 
   SerializationFormatter=False, 
   ControlDomainPolicy=False, 
   ControlPrincipal=False, 
   ControlAppDomain=False, 
   RemotingConfiguration=False, 
   Infrastructure=True, 
   BindingRedirects=False, 
   Action=SecurityAction.Demand Or  _
    SecurityAction.Deny Or  _
    SecurityAction.LinkDemand, 
   Unrestricted=False)>
Public Overridable Function CreateObjRef( _
   ByVal requestedType As Type _
) As ObjRef
Visual Basic (Usage)Copy Code
Dim instance As Medical3DControl
Dim requestedType As Type
Dim value As ObjRef
 
value = instance.CreateObjRef(requestedType)
C# 
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.Infrastructure, 
   Assertion=false, 
   UnmanagedCode=false, 
   SkipVerification=false, 
   Execution=false, 
   ControlThread=false, 
   ControlEvidence=false, 
   ControlPolicy=false, 
   SerializationFormatter=false, 
   ControlDomainPolicy=false, 
   ControlPrincipal=false, 
   ControlAppDomain=false, 
   RemotingConfiguration=false, 
   Infrastructure=true, 
   BindingRedirects=false, 
   Action=SecurityAction.Demand | 
    SecurityAction.Deny | 
    SecurityAction.LinkDemand, 
   Unrestricted=false)]
public virtual ObjRef CreateObjRef( 
   Type requestedType
)
C++/CLI 
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.Infrastructure, 
   Assertion=false, 
   UnmanagedCode=false, 
   SkipVerification=false, 
   Execution=false, 
   ControlThread=false, 
   ControlEvidence=false, 
   ControlPolicy=false, 
   SerializationFormatter=false, 
   ControlDomainPolicy=false, 
   ControlPrincipal=false, 
   ControlAppDomain=false, 
   RemotingConfiguration=false, 
   Infrastructure=true, 
   BindingRedirects=false, 
   Action=SecurityAction.Demand | 
    SecurityAction.Deny | 
    SecurityAction.LinkDemand, 
   Unrestricted=false)]
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.

Exceptions

ExceptionDescription
System.Runtime.Remoting.RemotingException This instance is not a valid remoting object.
System.Security.SecurityException The immediate caller does not have infrastructure permission.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Medical3D requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features