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



Obtains a lifetime service object to control the lifetime policy for this instance.

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 InitializeLifetimeService() As Object
Visual Basic (Usage)Copy Code
Dim instance As Medical3DControl
Dim value As Object
 
value = instance.InitializeLifetimeService()
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 object InitializeLifetimeService()
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 Object^ InitializeLifetimeService(); 

Return Value

An object of type System.Runtime.Remoting.Lifetime.ILease used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the System.Runtime.Remoting.Lifetime.LifetimeServices.LeaseManagerPollTime property.

Exceptions

ExceptionDescription
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