ILease.InitialLeaseTime Propriedade

Definição

Obtém ou define a hora inicial para a concessão.Gets or sets the initial time for the lease.

public:
 property TimeSpan InitialLeaseTime { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan InitialLeaseTime { get; set; }
[get: System.Security.SecurityCritical]
[set: System.Security.SecurityCritical]
public TimeSpan InitialLeaseTime { get; set; }
member this.InitialLeaseTime : TimeSpan with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.InitialLeaseTime : TimeSpan with get, set
Public Property InitialLeaseTime As TimeSpan

Valor da propriedade

TimeSpan

A hora inicial da concessão.The initial time for the lease.

Atributos

Exceções

O chamador imediato faz a chamada por meio de uma referência à interface e não tem permissão de infraestrutura.The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

Comentários

Se a InitialLeaseTime propriedade for definida como TimeSpan.Zero , a concessão nunca atingirá o tempo limite e o objeto associado a ela terá uma vida útil infinita.If the InitialLeaseTime property is set to TimeSpan.Zero, then the lease will never time out and the object associated with it will have an infinite lifetime.

Aplica-se a