Sugerir tradução
 
Outras sugestões:

progress indicator
Sem sugestões.
Clique para classificar e enviar comentários
MSDN
Biblioteca MSDN
Versões Anteriores
.NET Framework 2.0

  Ativar exibição de largura de banda baixa
Exibir Conteúdo: Lado a LadoExibir Conteúdo: Lado a Lado
Este conteúdo foi traduzido automaticamente e pode ser editado pelos membros da comunidade. Para melhorar a qualidade da tradução, clique no link Editar associado à frase que deseja modificar.
.NET Framework Class Library
WebEventCodes Class

Defines the codes associated with the ASP.NET health monitoring events.

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

Visual Basic (Declaration)
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WebEventCodes
Visual Basic (Usage)
Dim instance As WebEventCodes
C#
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class WebEventCodes
Visual C++
[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class WebEventCodes sealed
JScript
public final class WebEventCodes

ASP.NET health monitoring allows production and operations staff to manage deployed Web applications.The System.Web.Management namespace contains the health-event types responsible for packaging application health-status data and the provider types responsible for processing this data.It also contains supporting types that help during the management of health events.

The WebEventCodes class contains codes that identify types of health-monitoring events.Two types of codes are defined within the class: major codes, which identify the ASP.NET health-monitoring events; and detail codes, which provide more information about a related major code.These codes are implemented as integers, rather than as an enumeration, to allow for extensibility.

When a health-monitoring event is raised, it is associated with a major event code.The following list identifies the categories of major event codes that are defined within the WebEventCodes class:

  • Application codes.Application codes identify events in the lifetime of an application, such as startup and shutdown events.Their values are greater than the ApplicationCodeBase field constant.They are associated with the WebApplicationLifetimeEvent event type.The heartbeat event is a special kind of application event.It identifies events raised at periodic intervals to provide information relative to the state of the running process.It is associated with the WebHeartbeatEvent event type.

  • Request codes.Request codes identify non-error events that provide per-request information.Their values are greater than the RequestCodeBase field constant.They are associated with the WebRequestEvent event type.

  • Error codes.Error codes identify events that contain information about two kinds of errors: errors specifically related to a Web request and systemic errors.The errors related to Web requests include unhandled exceptions, view-state errors, and input-validation errors.They are associated with the WebRequestErrorEvent event type.The systemic errors relate to configuration or application code, including parser errors and compilation errors.They are associated with the WebErrorEvent event type.Both kinds of errors have values greater than the ErrorCodeBase field constant.

  • Audit codes.Audit codes identify events that contain auditable information such as login attempts, access security violations, and authorization violations.Their values are greater than AuditCodeBase.They are associated with WebAuditEvent and its derived event types.

  • Miscellaneous codes.Miscellaneous codes do not identify events but are used to flag nonstandard event information.Their values are greater than MiscCodeBase.Refer also to WebEventProviderInformation for more information.

You can create your own custom event code by choosing code values above WebExtendedBase.

In the eventMappings health-monitoring configuration element, you can optionally specify an event-code range.If the event code range is specified, the mapping only applies to the events that have an event code within that range; otherwise, it applies to all the event codes.The following configuration file excerpt shows the EventLogWebEventProvider configured to handle WebFailureAuditEvent events whose event codes belong to the audit category.

<healthMonitoring>
  <eventMappings> 
    <add name="Failure Audits" type=
      "System.Web.Management.WebFailureAuditEvent,System.Web, Version=2.0.3600.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </eventMappings>
  <rules>
    <add name="Failure Audits Default"
      eventName="Failure Audits"
      provider="EventLogProvider"
      profile="Default"
      minInterval="00:01:00" />
  </rules>
</healthMonitoring>

You can create your own custom event code by choosing code values above WebExtendedBase.

System..::.Object
  System.Web.Management..::.WebEventCodes
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.NET Framework Class Library
WebEventCodes Classe

Define os códigos associados a eventos monitorar a integridade do ASP.NET.

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

Visual Basic (Declaração)
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WebEventCodes
Visual Basic (Uso)
Dim instance As WebEventCodes
C#
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class WebEventCodes
Visual C++
[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class WebEventCodes sealed
JScript
public final class WebEventCodes

Monitoramento da integridade do ASP.NET permite que equipe de produção e operações gerenciar aplicativos da Web implantados.The System.Web.Management namespace contains the health-event types responsible for packaging application health-status data and the provider types responsible for processing this data.Ele também contém tipos de suporte que o ajudam durante o gerenciamento de eventos de saúde.

The WebEventCodes class contains codes that identify types of health-monitoring events.Dois tipos de códigos são definidos dentro da classe: Principal Codes, which identify the integridade ASP.NET-monitoração Events; e detalhar códigos, que fornecem mais informações sobre um código principal relacionada.Esses códigos são implementados como números inteiros, e não como uma enumeração, para permitir a extensibilidade.

When a integridade-monitoração evento is raised, it is associado with a Principal Código evento.The following list identifies the categories of major event codes that are defined within the WebEventCodes class:

  • Application codes.Códigos de aplicativo identificam eventos o tempo de vida de um aplicativo, como inicialização e eventos de desligamento.Their values are greater than the ApplicationCodeBase field constant.They are associated with the WebApplicationLifetimeEvent event type.O evento de pulsação é um tipo especial de eventos do aplicativo.Ele identifica os eventos gerados em intervalos periódicos para fornecer informações Relativo para o estado a execução do processo.It is associated with the WebHeartbeatEvent event type.

  • Request codes.Códigos de Solicitar identificam eventos não-erro que fornecem informações por Solicitar.Their values are greater than the RequestCodeBase field constant.They are associated with the WebRequestEvent event type.

  • Error codes.Códigos de erro identificam eventos que contêm informações sobre dois tipos de erros: Erros especificamente relacionados a uma Solicitar da Web e erros systemic.Os erros relacionados a solicitações da Web incluem exceções não tratadas, modo de Exibir-estado erros e erros de validação de entrada.They are associated with the WebRequestErrorEvent event type.Os erros systemic se relacionam com código de configuração ou aplicativo, incluindo erros do analisador e erros de compilação.They are associated with the WebErrorEvent event type.Both kinds of errors have values greater than the ErrorCodeBase field constant.

  • Audit codes.Códigos de auditoria identificam eventos que contêm informações auditáveis, como tentativas de logon, violações de segurança de acesso e violações de autorização.Their values are greater than AuditCodeBase.They are associated with WebAuditEvent and its derived event types.

  • Miscellaneous codes.Diversos códigos não identificam eventos, mas são usados para sinalizar informações sobre o evento fora do padrão.Their values are greater than MiscCodeBase.Refer also to WebEventProviderInformation for more information.

You can create your own custom event code by choosing code values above WebExtendedBase.

In the eventMappings health-monitoring configuration element, you can optionally specify an event-code range.Se o intervalo de código de evento é especificado, o mapeamento só se aplicará aos eventos que têm um código de evento dentro desse intervalo; Caso contrário, ele se aplica ao Tudo códigos de evento.The following configuration file excerpt shows the EventLogWebEventProvider configured to handle WebFailureAuditEvent events whose event codes belong to the audit category.

<healthMonitoring>
  <eventMappings> 
    <add name="Failure Audits" type=
      "System.Web.Management.WebFailureAuditEvent,System.Web, Version=2.0.3600.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </eventMappings>
  <rules>
    <add name="Failure Audits Default"
      eventName="Failure Audits"
      provider="EventLogProvider"
      profile="Default"
      minInterval="00:01:00" />
  </rules>
</healthMonitoring>

You can create your own custom event code by choosing code values above WebExtendedBase.

System..::.Object
  System.Web.Management..::.WebEventCodes
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.
Conteúdo da Comunidade   O que é Conteúdo da Comunidade?
Adicionar novo conteúdo RSS  Anotações
Processing
© 2009 Microsoft Corporation. Todos os direitos reservados. Termos de Uso  |  Marcas Comerciais  |  Política de Privacidade
Page view tracker