ApplicationPartAttribute Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies an assembly to be added as an ApplicationPart.
In the ordinary case, MVC will generate ApplicationPartAttribute instances on the entry assembly for each dependency that references MVC. Each of these assemblies is treated as an ApplicationPart.
public ref class ApplicationPartAttribute sealed : Attribute
C#
[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
- Inheritance
-
ApplicationPartAttribute
- Attributes
Application |
Initializes a new instance of ApplicationPartAttribute. |
Assembly |
Gets the assembly name. |
منتج | الإصدارات |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |