Share via


RazorDirectiveAttribute Class

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Represents an attribute for the Razor directive.

Inheritance Hierarchy

System.Object
  System.Attribute
    System.Web.Razor.RazorDirectiveAttribute

Namespace:  System.Web.Razor
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class RazorDirectiveAttribute _
    Inherits Attribute
'Usage
Dim instance As RazorDirectiveAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class RazorDirectiveAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class RazorDirectiveAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)>]
type RazorDirectiveAttribute =  
    class 
        inherit Attribute 
    end
public final class RazorDirectiveAttribute extends Attribute

The RazorDirectiveAttribute type exposes the following members.

Constructors

  Name Description
Public method RazorDirectiveAttribute This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Initializes a new instance of the RazorDirectiveAttribute class.

Top

Properties

  Name Description
Public property Name This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the name of the attribute.
Public property TypeId This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets the unique type ID of the attribute. (Overrides Attribute.TypeId.)
Public property Value This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the value of the attribute.

Top

Methods

  Name Description
Public method Equals This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Determines whether this instance is equal to a specified object. (Overrides Attribute.Equals(Object).)
Public method GetHashCode This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Returns the hash code for this instance. (Overrides Attribute.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.Invoke (Inherited from Attribute.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Razor Namespace