PreApplicationStartMethodAttribute(Type, String) Konstruktor

Definition

Initierar en ny instans av PreApplicationStartMethodAttribute klassen.

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)

Parametrar

type
Type

Ett objekt som beskriver typen av startmetod.

methodName
String

En tom parametersignatur som inte har något returvärde.

Kommentarer

Metoden som refereras av parametern methodName måste vara offentlig och kan vara antingen en instansmetod eller en statisk metod.

Gäller för