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 _
)
[C#]
void Unregister(
   ISponsor obj
);
[C++]
void Unregister(
   ISponsor* obj
);
[JScript]
function Unregister(
   obj : ISponsor
);

Parameters

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

Exceptions

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

Requirements

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

Show: