Share via


VBCodeParser.SessionStateDirective Method

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

Determines whether the code has a session state directive.

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

Syntax

'Declaration
Protected Overridable Function SessionStateDirective As Boolean
'Usage
Dim returnValue As Boolean 

returnValue = Me.SessionStateDirective()
protected virtual bool SessionStateDirective()
protected:
virtual bool SessionStateDirective()
abstract SessionStateDirective : unit -> bool  
override SessionStateDirective : unit -> bool
protected function SessionStateDirective() : boolean

Return Value

Type: System.Boolean
true if the code has a session state directive; otherwise, false.

See Also

Reference

VBCodeParser Class

System.Web.Razor.Parser Namespace