Compartir a través de


SyntaxFactory.FalseLiteralExpression(SyntaxToken) Método

Definición

Representa un literal. El tipo de literal viene determinado por la propiedad Kind: IntegerLiteral, CharacterLiteral, BooleanLiteral, DecimalLiteral, FloatingLiteral, DateLiteral o StringLiteral. El valor del literal se puede determinar convirtiendo el token asociado al tipo correcto y obteniendo el valor del token.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::LiteralExpressionSyntax ^ FalseLiteralExpression(Microsoft::CodeAnalysis::SyntaxToken token);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.LiteralExpressionSyntax FalseLiteralExpression (Microsoft.CodeAnalysis.SyntaxToken token);
static member FalseLiteralExpression : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LiteralExpressionSyntax
Public Shared Function FalseLiteralExpression (token As SyntaxToken) As LiteralExpressionSyntax

Parámetros

token
SyntaxToken

Token que representa el literal. La propiedad Kind determina qué tipo devuelve esta propiedad: Kind=IntegerLiteral ==> Devuelve IntegerLiteralToken. Kind=CharacterLiteral ==> Devuelve CharacterLiteralToken. Kind=DecimalLiteral ==> Returns DecimalLiteralToken Kind=FloatingLiteral ==> Returns FloatingLiteralToken Kind=DateLiteral ==> Returns DateLiteralToken Kind=StringLiteral ==> Returns StringLiteralToken Kind=BooleanLiteral ==> Returns Keyword (con el tipo trueKeyword o FalseKeyword) Kind=NothingLiteral ==> Returns Keyword (con el tipo NothingKeyword)

Devoluciones

Se aplica a