ILease::Register Method (ISponsor^)

 

Registers a sponsor for the lease without renewing the lease.

Namespace:   System.Runtime.Remoting.Lifetime
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
void Register(
	ISponsor^ obj
)

Parameters

obj
Type: System.Runtime.Remoting.Lifetime::ISponsor^

The callback object of the sponsor.

Exception Condition
SecurityException

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

If a sponsor is registered with the current method, the lease is not renewed.

SecurityPermission

for operating with infrastructure code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: