Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original
Este tópico ainda não foi avaliado como - Avalie este tópico

RuleFiringRecord Classe

Represents the firing record for an event that derives from the WebManagementEvent class and implements the IWebEventCustomEvaluator interface.

Namespace:  System.Web.Management
Assembly:  System.Web (em System.Web. dll)

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class RuleFiringRecord

The RuleFiringRecord class provides information that could be used to determine whether the firing of the event should be recorded.

The following code example shows how the RuleFiringRecord is used when passed to the CanFire method.





  CanFire(
    System.Web.Management.WebBaseEvent e, 
    RuleFiringRecord rule)
{

     fireEvent;
    string lastFired = rule.LastFired.ToString();
    string timesRaised = rule.TimesRaised.ToString();

    
    fireEvent =
        (rule.TimesRaised % 2 == 0) ?  : ;

     (fireEvent)
    {
        firingRecordInfo =
            string.Format(,
            lastFired) +
            string.Format(,
            timesRaised);
    }
    
        firingRecordInfo =
          string.Format(
           ,
           timesRaised);

     fireEvent;

}


System.Object
  System.Web.Management.RuleFiringRecord
Quaisquer membros públicos estático (compartilhados na Visual Basic) desse tipo são Thread seguro. Não há garantia de que qualquer membro de instância seja isento de segmentos.
Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
© 2013 Microsoft. Todos os direitos reservados.