ILease.CurrentLeaseTime 属性

定义

获取租约的剩余时间。Gets the amount of time remaining on the lease.

public:
 property TimeSpan CurrentLeaseTime { TimeSpan get(); };
public TimeSpan CurrentLeaseTime { get; }
[get: System.Security.SecurityCritical]
public TimeSpan CurrentLeaseTime { get; }
member this.CurrentLeaseTime : TimeSpan
[<get: System.Security.SecurityCritical>]
member this.CurrentLeaseTime : TimeSpan
Public ReadOnly Property CurrentLeaseTime As TimeSpan

属性值

TimeSpan

租约的剩余时间。The amount of time remaining on the lease.

属性

例外

直接调用方通过引用接口进行调用,且没有基础结构权限。The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

适用于