Share via


CodeGeneratorContext.AddContextCall(Span, String, Boolean) Method

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a code statement for a context call on the specified method.

public void AddContextCall(System.Web.Razor.Parser.SyntaxTree.Span contentSpan, string methodName, bool isLiteral);
member this.AddContextCall : System.Web.Razor.Parser.SyntaxTree.Span * string * bool -> unit
Public Sub AddContextCall (contentSpan As Span, methodName As String, isLiteral As Boolean)

Parameters

contentSpan
Span

The content span.

methodName
String

The name of the method to invoke a context call.

isLiteral
Boolean

true to specify that the method parameter is literal; otherwise, false.

Applies to