다음을 통해 공유


LiteralExpressionSyntax.WithToken(SyntaxToken) Method

Definition

Returns a copy of this with the Token property changed to the specified value. Returns this instance if the specified value is the same as the current value.

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

Parameters

token
SyntaxToken

Returns

Applies to