Language

AcceptsAssetPathAttribute Class

Definition

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.

Applies to