ILease.Register Méthode

Définition

Inscrit un sponsor pour le bail.

Surcharges

Nom Description
Register(ISponsor)

Inscrit un sponsor pour le bail sans renouveler le bail.

Register(ISponsor, TimeSpan)

Inscrit un sponsor pour le bail et le renouvelle par l’élément spécifié TimeSpan.

Register(ISponsor)

Inscrit un sponsor pour le bail sans renouveler le bail.

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)

Paramètres

obj
ISponsor

Objet de rappel du sponsor.

Attributs

Exceptions

L’appelant immédiat effectue l’appel via une référence à l’interface et n’a pas d’autorisation d’infrastructure.

Remarques

Si un sponsor est inscrit avec la méthode actuelle, le bail n’est pas renouvelé.

S’applique à

Register(ISponsor, TimeSpan)

Inscrit un sponsor pour le bail et le renouvelle par l’élément spécifié 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)

Paramètres

obj
ISponsor

Objet de rappel du sponsor.

renewalTime
TimeSpan

Durée de renouvellement du bail.

Attributs

Exceptions

L’appelant immédiat effectue l’appel via une référence à l’interface et n’a pas d’autorisation d’infrastructure.

S’applique à