AcceptsAssetPathAttribute Class
Definition
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.
Declares an HTML element and attribute combination that accepts static asset-path expansion.
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class AcceptsAssetPathAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type AcceptsAssetPathAttribute = class
inherit Attribute
Public NotInheritable Class AcceptsAssetPathAttribute
Inherits Attribute
- Inheritance
-
AcceptsAssetPathAttribute
- Attributes
Examples
[AcceptsAssetPath("img", "src")]
public static class AssetPathAttributes
{
}
Remarks
The Razor compiler discovers this metadata on public classes named AssetPathAttributes.
Constructors
| Name | Description |
|---|---|
| AcceptsAssetPathAttribute(String, String) |
Initializes a new instance of AcceptsAssetPathAttribute. |
Properties
| Name | Description |
|---|---|
| AttributeName |
Gets the HTML attribute name. |
| ElementName |
Gets the HTML element name. |