Share via


RazorCodeLanguage.LanguageName Property

Gets the language name of the current Razor code, that is “csharp” or “vb”.

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property LanguageName As String 
    Get
'Usage
Dim instance As RazorCodeLanguage 
Dim value As String 

value = instance.LanguageName
public abstract string LanguageName { get; }
public:
virtual property String^ LanguageName {
    String^ get () abstract;
}
abstract LanguageName : string
abstract function get LanguageName () : String

Property Value

Type: System.String
The language name of the current Razor code.

See Also

Reference

RazorCodeLanguage Class

System.Web.Razor Namespace