SyntaxFactory.DateLiteralExpression(SyntaxToken) 메서드

정의

리터럴을 나타냅니다. 리터럴의 종류는 Kind 속성인 IntegerLiteral, CharacterLiteral, BooleanLiteral, DecimalLiteral, FloatingLiteral, DateLiteral 또는 StringLiteral에 의해 결정됩니다. 연결된 토큰을 올바른 형식으로 캐스팅하고 토큰에서 값을 가져오면 리터럴 값을 확인할 수 있습니다.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::LiteralExpressionSyntax ^ DateLiteralExpression(Microsoft::CodeAnalysis::SyntaxToken token);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.LiteralExpressionSyntax DateLiteralExpression (Microsoft.CodeAnalysis.SyntaxToken token);
static member DateLiteralExpression : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LiteralExpressionSyntax
Public Shared Function DateLiteralExpression (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 ==> StringLiteralToken Kind=BooleanLiteral ==> 반환 키워드(종류가 TrueKeyword 또는 FalseKeyword임) Kind=NothingLiteral ==> Returns Keyword(NothingKeyword인 종류 포함)

반환

적용 대상