Edit

Share via


PreApplicationStartMethodAttribute(Type, String) Constructor

Definition

Initializes a new instance of the PreApplicationStartMethodAttribute class.

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)

Parameters

type
Type

An object that describes the type of the startup method.

methodName
String

An empty parameter signature that has no return value.

Remarks

The method referenced by the methodName parameter must be public and can be either an instance method or static method.

Applies to