Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PreApplicationStartMethodAttribute Constructor

PreApplicationStartMethodAttribute Constructor

.NET Framework 4.6 and 4.5

Initializes a new instance of the PreApplicationStartMethodAttribute class.

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

public PreApplicationStartMethodAttribute(
	Type type,
	string methodName


Type: System.Type

An object that describes the type of the startup method..

Type: System.String

An empty parameter signature that has no return value.

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

.NET Framework

Supported in: 4.6, 4.5, 4
© 2015 Microsoft