ILease.Register Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a sponsor for the lease.
Overloads
Register(ISponsor) |
Registers a sponsor for the lease without renewing the lease. |
Register(ISponsor, TimeSpan) |
Registers a sponsor for the lease, and renews it by the specified TimeSpan. |
Register(ISponsor)
Registers a sponsor for the lease without renewing the lease.
public:
void Register(System::Runtime::Remoting::Lifetime::ISponsor ^ obj);
public void Register (System.Runtime.Remoting.Lifetime.ISponsor obj);
[System.Security.SecurityCritical]
public void Register (System.Runtime.Remoting.Lifetime.ISponsor obj);
abstract member Register : System.Runtime.Remoting.Lifetime.ISponsor -> unit
[<System.Security.SecurityCritical>]
abstract member Register : System.Runtime.Remoting.Lifetime.ISponsor -> unit
Public Sub Register (obj As ISponsor)
Parameters
- obj
- ISponsor
The callback object of the sponsor.
- Attributes
Exceptions
The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.
Remarks
If a sponsor is registered with the current method, the lease is not renewed.
Applies to
Register(ISponsor, TimeSpan)
Registers a sponsor for the lease, and renews it by the specified TimeSpan.
public:
void Register(System::Runtime::Remoting::Lifetime::ISponsor ^ obj, TimeSpan renewalTime);
public void Register (System.Runtime.Remoting.Lifetime.ISponsor obj, TimeSpan renewalTime);
[System.Security.SecurityCritical]
public void Register (System.Runtime.Remoting.Lifetime.ISponsor obj, TimeSpan renewalTime);
abstract member Register : System.Runtime.Remoting.Lifetime.ISponsor * TimeSpan -> unit
[<System.Security.SecurityCritical>]
abstract member Register : System.Runtime.Remoting.Lifetime.ISponsor * TimeSpan -> unit
Public Sub Register (obj As ISponsor, renewalTime As TimeSpan)
Parameters
- obj
- ISponsor
The callback object of the sponsor.
- renewalTime
- TimeSpan
The length of time to renew the lease by.
- Attributes
Exceptions
The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기