HostingStartupAttribute Class

Definition

Marker attribute indicating an implementation of IHostingStartup that will be loaded and executed when building an IWebHost.

public ref class HostingStartupAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)]
public sealed class HostingStartupAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)>]
type HostingStartupAttribute = class
    inherit Attribute
Public NotInheritable Class HostingStartupAttribute
Inherits Attribute
Inheritance
HostingStartupAttribute
Attributes

Constructors

HostingStartupAttribute(Type)

Constructs the HostingStartupAttribute with the specified type.

Properties

HostingStartupType

The implementation of IHostingStartup that should be loaded when starting an application.

Applies to