Share via


Block.Type Property

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

Gets the type of code block.

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

Syntax

'Declaration
Public Property Type As BlockType 
    Get 
    Private Set
'Usage
Dim instance As Block 
Dim value As BlockType 

value = instance.Type
public BlockType Type { get; private set; }
public:
property BlockType Type {
    BlockType get ();
    private: void set (BlockType value);
}
member Type : BlockType with get, private set
function get Type () : BlockType 
private function set Type (value : BlockType)

Property Value

Type: System.Web.Razor.Parser.SyntaxTree.BlockType
The type of code block.

See Also

Reference

Block Class

System.Web.Razor.Parser.SyntaxTree Namespace