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
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