SyntaxFactory.FalseLiteralExpression(SyntaxToken) 方法

定义

表示文字。 文本的类型由 Kind 属性确定:IntegerLiteral、CharacterLiteral、BooleanLiteral、DecimalLiteral、FloatingLiteral、DateLiteral 或 StringLiteral。 文本的值可以通过将关联的令牌强制转换为正确的类型并从令牌中获取值来确定。

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

参数

token
SyntaxToken

表示文本的标记。 Kind 属性确定此属性返回的类型:Kind=IntegerLiteral ==> 返回 IntegerLiteralToken。 Kind=CharacterLiteral ==> 返回 CharacterLiteralToken。 Kind=DecimalLiteral ==> Returns DecimalLiteralToken Kind=FloatingLiteral ==> Returns FloatingLiteralToken Kind=DateLiteral ==> Returns DateLiteralToken Kind=StringLiteral ==> Returns StringLiteralToken Kind=BooleanLiteral ==> Returns Keyword (,其类型为 TrueKeyword 或 FalseKeyword) Kind=NothingLiteral ==> Returns Keyword (,其类型为 NothingKeyword)

返回

适用于