RazorCompiledItemAttribute Class

Definition

Specifies that an assembly contains a compiled Razor asset.

public ref class RazorCompiledItemAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)]
public sealed class RazorCompiledItemAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class RazorCompiledItemAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)>]
type RazorCompiledItemAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type RazorCompiledItemAttribute = class
    inherit Attribute
Public NotInheritable Class RazorCompiledItemAttribute
Inherits Attribute
Inheritance
RazorCompiledItemAttribute
Attributes

Constructors

RazorCompiledItemAttribute(Type, String, String)

Creates a new RazorCompiledItemAttribute.

Properties

Identifier

Gets the identifier associated with the compiled item. The identifier is used programmatically to locate a specific item of a specific kind and should be unique within the assembly.

Kind

Gets the kind of compiled item. The kind is used programmatically to associate behaviors and semantics with the item.

Type

Gets the Type of the compiled item. The type should be contained in the assembly associated with this instance of RazorCompiledItemAttribute.

Applies to