This documentation is archived and is not being maintained.

ILease.Unregister Method

Removes a sponsor from the sponsor list.

[Visual Basic]
Sub Unregister( _
   ByVal obj As ISponsor _
void Unregister(
   ISponsor obj
void Unregister(
   ISponsor* obj
function Unregister(
   obj : ISponsor


The lease sponsor to unregister.

Return Value

After this method is called, the lease state changes to expired and the object is collected by the garbage collector.


Exception Type Condition
SecurityException The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ILease Interface | ILease Members | System.Runtime.Remoting.Lifetime Namespace