HostingStartupAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示 在生成 时将加载和执行 的 IHostingStartup 实现的 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
- 继承
-
HostingStartupAttribute
- 属性
构造函数
HostingStartupAttribute(Type) |
HostingStartupAttribute使用指定的类型构造 。 |
属性
HostingStartupType |
启动应用程序时,应加载 的实现 IHostingStartup 。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈