PreApplicationStartMethodAttribute(Type, String) Construtor

Definição

Inicializa uma nova instância da PreApplicationStartMethodAttribute classe.

public:
 PreApplicationStartMethodAttribute(Type ^ type, System::String ^ methodName);
public PreApplicationStartMethodAttribute(Type type, string methodName);
new System.Web.PreApplicationStartMethodAttribute : Type * string -> System.Web.PreApplicationStartMethodAttribute
Public Sub New (type As Type, methodName As String)

Parâmetros

type
Type

Um objeto que descreve o tipo do método de arranque.

methodName
String

Uma assinatura de parâmetro vazia que não tem valor de retorno.

Observações

O método referenciado pelo methodName parâmetro deve ser público e pode ser um método de instância ou um método estático.

Aplica-se a