Partage via


PreApplicationStartMethodAttribute(Type, String) Constructeur

Définition

Initialise une nouvelle instance de la classe PreApplicationStartMethodAttribute.

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)

Paramètres

type
Type

Objet qui décrit le type de la méthode de démarrage.

methodName
String

Signature de paramètre vide qui n'a aucune valeur de retour.

Remarques

La méthode référencée par le methodName paramètre doit être publique et peut être une méthode d’instance ou une méthode statique.

S’applique à