Läs på engelska

Dela via


HostingStartupAttribute Class

Definition

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

C#
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)]
public sealed class HostingStartupAttribute : 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

Produkt Versioner
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0