ContractBase::Renewal Method (ILease^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Requests a sponsoring client to renew the lease for the specified object.

Namespace:   System.AddIn.Pipeline
Assembly:  System.AddIn (in System.AddIn.dll)

public:
[SecurityCriticalAttribute]
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::Infrastructure)]
virtual TimeSpan Renewal(
	ILease^ lease
) sealed

Parameters

lease
Type: System.Runtime.Remoting.Lifetime::ILease^

The lifetime lease object that is used by the remoting lifetime service.

Return Value

Type: System::TimeSpan

The renewed lease.

Exception Condition
ArgumentNullException

lease is null.

LinkDemand

for full trust for the immediate caller. This member cannot be used by partially trusted code.

.NET Framework
Available since 3.5
Return to top
Show: