Retrieves the current lifetime service object that controls 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 Function GetLifetimeService() As Object |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Medical3DControl
Dim value As Object
value = instance.GetLifetimeService() |
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 object GetLifetimeService() |
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:
Object^ GetLifetimeService(); |
Return Value
An object of type
System.Runtime.Remoting.Lifetime.ILease used to control the lifetime policy for this instance.
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