Share via


Block Class

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

Represents the block for creating webpages.

Inheritance Hierarchy

System.Object
  System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode
    System.Web.Razor.Parser.SyntaxTree.Block

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

Syntax

'Declaration
Public Class Block _
    Inherits SyntaxTreeNode
'Usage
Dim instance As Block
public class Block : SyntaxTreeNode
public ref class Block : public SyntaxTreeNode
type Block =  
    class 
        inherit SyntaxTreeNode 
    end
public class Block extends SyntaxTreeNode

The Block type exposes the following members.

Constructors

  Name Description
Public method Block 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 Block class.

Top

Properties

  Name Description
Public property Children This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a collection of SyntaxTreeNode to view the children of the block.
Public property CodeGenerator This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the IBlockCodeGenerator to generate codes for the elements.
Public property IsBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value that indicates whether the object is a block-level object. (Overrides SyntaxTreeNode.IsBlock.)
Public property Length This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the length value of the block. (Overrides SyntaxTreeNode.Length.)
Public property Name This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the string name of the block.
Public property Parent This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the parent tree node of the current tree node. (Inherited from SyntaxTreeNode.)
Public property Start This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the start to identify the specific location of the block. (Overrides SyntaxTreeNode.Start.)
Public property Type 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.

Top

Methods

  Name Description
Public method Accept This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the parser visitor of the block. (Overrides SyntaxTreeNode.Accept(ParserVisitor).)
Public method Equals This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the specified object is equal to the current block. (Overrides Object.Equals(Object).)
Public method EquivalentTo This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns a value indicating whether the block is equivalent to the same element. (Overrides SyntaxTreeNode.EquivalentTo(SyntaxTreeNode).)
Protected method Finalize (Inherited from Object.)
Public method FindFirstDescendentSpan This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Finds the first descendent span of the block.
Public method FindLastDescendentSpan This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Finds the last descendent span of the block.
Public method Flatten This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Flattens a collection of a specified type for the block.
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 Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method LocateOwner This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Locates the owner of the block.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns a string that represents the current object. (Overrides Object.ToString().)

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.Parser.SyntaxTree Namespace