ApplicationPartAttribute 类

定义

指定要添加为 的 ApplicationPart程序集。

在一般情况下,MVC 将为引用 MVC 的每个依赖项在条目程序集上生成 ApplicationPartAttribute 实例。 其中每个程序集都被视为 。ApplicationPart

public ref class ApplicationPartAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class ApplicationPartAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type ApplicationPartAttribute = class
    inherit Attribute
Public NotInheritable Class ApplicationPartAttribute
Inherits Attribute
继承
ApplicationPartAttribute
属性

构造函数

ApplicationPartAttribute(String)

初始化 ApplicationPartAttribute 的新实例。

属性

AssemblyName

获取程序集名称。

适用于