Share via


VBCodeParser.IsDirectiveDefined Method

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

Determines whether the code is directive defined.

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

Syntax

'Declaration
Public Function IsDirectiveDefined ( _
    directive As String _
) As Boolean
'Usage
Dim instance As VBCodeParser 
Dim directive As String 
Dim returnValue As Boolean 

returnValue = instance.IsDirectiveDefined(directive)
public bool IsDirectiveDefined(
    string directive
)
public:
bool IsDirectiveDefined(
    String^ directive
)
member IsDirectiveDefined : 
        directive:string -> bool
public function IsDirectiveDefined(
    directive : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the code is directive defined; otherwise, false.

See Also

Reference

VBCodeParser Class

System.Web.Razor.Parser Namespace