Język

AcceptsAssetPathAttribute Klasa

Definicja

Deklaruje kombinację elementu HTML i atrybutu, która akceptuje rozszerzenie statycznej ścieżki zasobów.

[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
Dziedziczenie
AcceptsAssetPathAttribute
Atrybuty

Przykłady

[AcceptsAssetPath("img", "src")]
public static class AssetPathAttributes
{
}

Uwagi

Kompilator Razor odnajduje te metadane w klasach publicznych o nazwie AssetPathAttributes.

Konstruktory

Nazwisko Opis
AcceptsAssetPathAttribute(String, String)

Inicjuje nowe wystąpienie klasy AcceptsAssetPathAttribute.

Właściwości

Nazwisko Opis
AttributeName

Pobiera nazwę atrybutu HTML.

ElementName

Pobiera nazwę elementu HTML.

Dotyczy